summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-05-13 20:10:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-05-13 20:10:57 (GMT)
commitee0954cd4f25cbd926f9b4e4ba121c34877b1cb4 (patch)
tree927f40cf310d114f038cfea207db177cd9b1524a
parented5541867f94b36e701708757a0489298fe77135 (diff)
Fixed a lot of compilation warnings.
-rw-r--r--ChangeLog6
-rw-r--r--src/format/format.c10
-rw-r--r--src/format/format.h10
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 <nocbos@gmail.com>
+ * src/format/format.c:
+ * src/format/format.h:
+ Fix a lot of compilation warnings.
+
+16-05-13 Cyrille Bagard <nocbos@gmail.com>
+
* 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 *);