summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-02-11 21:53:49 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-02-11 21:53:49 (GMT)
commitc3bfa0437f9671b0896d89abd197eaa34fdefc1f (patch)
tree7030b4c0db6cb911b781111751bf76621cda1ab8 /src
parenta11ef1ad68fdb86d4a7d75b0ddeea126aa1adb09 (diff)
Updated the prototype used to get symbol label.
Diffstat (limited to 'src')
-rw-r--r--src/analysis/routine.c4
-rw-r--r--src/format/symbol.c2
-rw-r--r--src/format/symbol.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/analysis/routine.c b/src/analysis/routine.c
index b882428..557e9aa 100644
--- a/src/analysis/routine.c
+++ b/src/analysis/routine.c
@@ -87,7 +87,7 @@ static void g_bin_routine_init(GBinRoutine *);
static void g_binary_routine_reset_declarator(GBinRoutine *, bool);
/* Fournit une étiquette pour viser une routine. */
-static const char *g_binary_routine_get_label(GBinRoutine *);
+static const char *g_binary_routine_get_label(const GBinRoutine *);
@@ -641,7 +641,7 @@ const char *g_binary_routine_get_declarator(GBinRoutine *routine, bool full)
* *
******************************************************************************/
-static const char *g_binary_routine_get_label(GBinRoutine *routine)
+static const char *g_binary_routine_get_label(const GBinRoutine *routine)
{
return g_binary_routine_get_declarator(routine, false);
diff --git a/src/format/symbol.c b/src/format/symbol.c
index 099b764..dfb36a6 100644
--- a/src/format/symbol.c
+++ b/src/format/symbol.c
@@ -396,7 +396,7 @@ SymbolStatus g_binary_symbol_get_status(const GBinSymbol *symbol)
* *
******************************************************************************/
-const char *g_binary_symbol_get_label(GBinSymbol *symbol)
+const char *g_binary_symbol_get_label(const GBinSymbol *symbol)
{
const char *result; /* Etiquette à retourner */
diff --git a/src/format/symbol.h b/src/format/symbol.h
index 8aabfdf..b6f1e87 100644
--- a/src/format/symbol.h
+++ b/src/format/symbol.h
@@ -109,7 +109,7 @@ void g_binary_symbol_set_status(GBinSymbol *, SymbolStatus);
SymbolStatus g_binary_symbol_get_status(const GBinSymbol *);
/* Fournit une étiquette pour viser un symbole. */
-const char *g_binary_symbol_get_label(GBinSymbol *);
+const char *g_binary_symbol_get_label(const GBinSymbol *);
/* Définit un autre nom pour le symbole. */
void g_binary_symbol_set_alt_label(GBinSymbol *, const char *);