diff options
Diffstat (limited to 'src/format/format.c')
-rw-r--r-- | src/format/format.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/format/format.c b/src/format/format.c index 4dc6416..5d845e4 100644 --- a/src/format/format.c +++ b/src/format/format.c @@ -320,7 +320,6 @@ bool g_binary_format_add_symbol(GBinFormat *format, GBinSymbol *symbol) const vmpa2t *addr; /* Emplacement du symbole */ #endif size_t index; /* Indice du point d'insertion */ - GBinRoutine *routine; /* Nouvelle routine à insérer */ /** * Pour que les fonctions de recherche basées sur _g_binary_format_find_symbol() @@ -396,17 +395,11 @@ bool g_binary_format_add_symbol(GBinFormat *format, GBinSymbol *symbol) static void _g_binary_format_remove_symbol(GBinFormat *format, size_t index) { - GBinSymbol *symbol; /* Symbole visé par l'opération*/ - GBinRoutine *routine; /* Eventuelle routine associée */ - size_t i; /* Boucle de parcours */ - /** * TODO : envoyer un signal pour avertir les opérandes concernées. * TODO : vérifier les conditions d'accès (verrou). */ - symbol = format->symbols[index]; - assert(index < format->symbols_count); if ((index + 1) < format->symbols_count) @@ -436,6 +429,8 @@ void g_binary_format_remove_symbol(GBinFormat *format, GBinSymbol *symbol) { size_t i; /* Boucle de parcours */ + // FIXME : dicho + for (i = 0; i < format->symbols_count; i++) if (format->symbols[i] == symbol) break; |