From ee0954cd4f25cbd926f9b4e4ba121c34877b1cb4 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Fri, 13 May 2016 22:10:57 +0200 Subject: Fixed a lot of compilation warnings. --- ChangeLog | 6 ++++++ src/format/format.c | 10 +++++----- src/format/format.h | 10 +++++----- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 25b8ab8..c8e7ef8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 16-05-13 Cyrille Bagard + * src/format/format.c: + * src/format/format.h: + Fix a lot of compilation warnings. + +16-05-13 Cyrille Bagard + * src/analysis/disass/area.c: Take concurrency into account when dealing with new symbols. diff --git a/src/format/format.c b/src/format/format.c index 0ae6107..1ee3001 100644 --- a/src/format/format.c +++ b/src/format/format.c @@ -593,7 +593,7 @@ char *create_string_label(GBinFormat *format, const vmpa2t *addr, const char *ba * * ******************************************************************************/ -bool g_binary_format_find_symbol_by_label(const GBinFormat *format, const char *label, GBinSymbol **symbol) +bool g_binary_format_find_symbol_by_label(GBinFormat *format, const char *label, GBinSymbol **symbol) { bool result; /* Bilan à retourner */ size_t i; /* Boucle de parcours */ @@ -684,7 +684,7 @@ static bool _g_binary_format_find_symbol(const GBinFormat *format, const vmpa2t * * ******************************************************************************/ -bool g_binary_format_find_symbol_at(const GBinFormat *format, const vmpa2t *addr, GBinSymbol **symbol) +bool g_binary_format_find_symbol_at(GBinFormat *format, const vmpa2t *addr, GBinSymbol **symbol) { bool result; /* Bilan à retourner */ @@ -723,7 +723,7 @@ bool g_binary_format_find_symbol_at(const GBinFormat *format, const vmpa2t *addr * * ******************************************************************************/ -bool g_binary_format_find_symbol_for(const GBinFormat *format, const vmpa2t *addr, GBinSymbol **symbol) +bool g_binary_format_find_symbol_for(GBinFormat *format, const vmpa2t *addr, GBinSymbol **symbol) { bool result; /* Bilan à retourner */ @@ -762,7 +762,7 @@ bool g_binary_format_find_symbol_for(const GBinFormat *format, const vmpa2t *add * * ******************************************************************************/ -bool g_binary_format_find_next_symbol_at(const GBinFormat *format, const vmpa2t *addr, GBinSymbol **symbol) +bool g_binary_format_find_next_symbol_at(GBinFormat *format, const vmpa2t *addr, GBinSymbol **symbol) { bool result; /* Bilan à retourner */ size_t index; /* Indice à considérer */ @@ -813,7 +813,7 @@ bool g_binary_format_find_next_symbol_at(const GBinFormat *format, const vmpa2t * * ******************************************************************************/ -bool g_binary_format_resolve_symbol(const GBinFormat *format, const vmpa2t *addr, GBinSymbol **symbol, phys_t *diff) +bool g_binary_format_resolve_symbol(GBinFormat *format, const vmpa2t *addr, GBinSymbol **symbol, phys_t *diff) { bool result; /* Bilan à retourner */ const mrange_t *range; /* Espace mémoire parcouru */ diff --git a/src/format/format.h b/src/format/format.h index 915b62f..19c2b0a 100644 --- a/src/format/format.h +++ b/src/format/format.h @@ -80,19 +80,19 @@ GBinSymbol **g_binary_format_get_symbols(const GBinFormat *, size_t *); char *create_string_label(GBinFormat *, const vmpa2t *, const char *, size_t); /* Recherche le symbole correspondant à une étiquette. */ -bool g_binary_format_find_symbol_by_label(const GBinFormat *, const char *, GBinSymbol **); +bool g_binary_format_find_symbol_by_label(GBinFormat *, const char *, GBinSymbol **); /* Recherche le symbole correspondant à une adresse. */ -bool g_binary_format_find_symbol_at(const GBinFormat *, const vmpa2t *, GBinSymbol **); +bool g_binary_format_find_symbol_at(GBinFormat *, const vmpa2t *, GBinSymbol **); /* Recherche le symbole contenant une adresse. */ -bool g_binary_format_find_symbol_for(const GBinFormat *, const vmpa2t *, GBinSymbol **); +bool g_binary_format_find_symbol_for(GBinFormat *, const vmpa2t *, GBinSymbol **); /* Recherche le symbole suivant celui lié à une adresse. */ -bool g_binary_format_find_next_symbol_at(const GBinFormat *, const vmpa2t *, GBinSymbol **); +bool g_binary_format_find_next_symbol_at(GBinFormat *, const vmpa2t *, GBinSymbol **); /* Recherche le symbole correspondant à une adresse. */ -bool g_binary_format_resolve_symbol(const GBinFormat *, const vmpa2t *, GBinSymbol **, phys_t *); +bool g_binary_format_resolve_symbol(GBinFormat *, const vmpa2t *, GBinSymbol **, phys_t *); /* Fournit le prototype de toutes les routines détectées. */ GBinRoutine **g_binary_format_get_routines(const GBinFormat *, size_t *); -- cgit v0.11.2-87-g4458