From c3bfa0437f9671b0896d89abd197eaa34fdefc1f Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sun, 11 Feb 2018 22:53:49 +0100 Subject: Updated the prototype used to get symbol label. --- ChangeLog | 9 +++++++++ src/analysis/routine.c | 4 ++-- src/format/symbol.c | 2 +- src/format/symbol.h | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index c317398..9f01970 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 18-02-11 Cyrille Bagard + * src/analysis/routine.c: + Update code. + + * src/format/symbol.c: + * src/format/symbol.h: + Update the prototype used to get symbol label. + +18-02-11 Cyrille Bagard + * src/core/logs.c: Remove compilation warnings. 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 *); -- cgit v0.11.2-87-g4458