summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-09-07 18:16:10 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-09-07 18:16:10 (GMT)
commitb7a6baa6ec7b45637ad56418e8e3ab736409835f (patch)
tree1c09f961e88f43efa3bcbe762247648d16d09610
parent9aaaa651d924eb30e46f26690aea007b7d868e35 (diff)
Updated prototypes for creating memory content.
-rw-r--r--plugins/pychrysalide/analysis/contents/memory.c2
-rw-r--r--src/analysis/contents/memory.c2
-rw-r--r--src/analysis/contents/memory.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/pychrysalide/analysis/contents/memory.c b/plugins/pychrysalide/analysis/contents/memory.c
index 812c580..89a2aa8 100644
--- a/plugins/pychrysalide/analysis/contents/memory.c
+++ b/plugins/pychrysalide/analysis/contents/memory.c
@@ -70,7 +70,7 @@ static PyObject *py_memory_content_new(PyTypeObject *type, PyObject *args, PyObj
ret = PyBytes_AsStringAndSize(data, &buffer, &length);
if (ret == -1) Py_RETURN_NONE;
- content = g_memory_content_new((bin_t *)buffer, length);
+ content = g_memory_content_new((const bin_t *)buffer, length);
result = pygobject_new(G_OBJECT(content));
diff --git a/src/analysis/contents/memory.c b/src/analysis/contents/memory.c
index beefe89..404481f 100644
--- a/src/analysis/contents/memory.c
+++ b/src/analysis/contents/memory.c
@@ -274,7 +274,7 @@ static void g_memory_content_finalize(GMemoryContent *content)
* *
******************************************************************************/
-GBinContent *g_memory_content_new(bin_t *data, phys_t size)
+GBinContent *g_memory_content_new(const bin_t *data, phys_t size)
{
GMemoryContent *result; /* Structure à retourner */
int fd; /* Descripteur du fichier */
diff --git a/src/analysis/contents/memory.h b/src/analysis/contents/memory.h
index 769282c..434d586 100644
--- a/src/analysis/contents/memory.h
+++ b/src/analysis/contents/memory.h
@@ -51,7 +51,7 @@ typedef struct _GMemoryContentClass GMemoryContentClass;
GType g_memory_content_get_type(void);
/* Charge en mémoire le contenu de données brutes. */
-GBinContent *g_memory_content_new(bin_t *, phys_t);
+GBinContent *g_memory_content_new(const bin_t *, phys_t);
/* Charge des données à laisser en mémoire à partir d'XML. */
GBinContent *g_memory_content_new_from_xml(xmlXPathContextPtr, const char *, const char *);