diff options
Diffstat (limited to 'src/format/pe')
| -rw-r--r-- | src/format/pe/pe.c | 29 | 
1 files changed, 3 insertions, 26 deletions
diff --git a/src/format/pe/pe.c b/src/format/pe/pe.c index 16a9032..88756dd 100644 --- a/src/format/pe/pe.c +++ b/src/format/pe/pe.c @@ -40,7 +40,7 @@ static void g_pe_format_class_init(GPeFormatClass *);  static void g_pe_format_init(GPeFormat *);  /* Indique le type d'architecture visée par le format. */ -static FormatTargetMachine g_pe_format_get_target_machine(const GPeFormat *); +static const char *g_pe_format_get_target_machine(const GPeFormat *);  /* Fournit les références aux zones binaires à analyser. */  //static GBinPart **g_pe_format_get_parts(const GPeFormat *, size_t *); @@ -220,32 +220,9 @@ GBinFormat *g_pe_format_new(const bin_t *content, off_t length)  *                                                                             *  ******************************************************************************/ -static FormatTargetMachine g_pe_format_get_target_machine(const GPeFormat *format) +static const char *g_pe_format_get_target_machine(const GPeFormat *format)  { -    FormatTargetMachine result;             /* Identifiant à retourner     */ - -    result = FTM_386; - -    /* -    switch (format->header.e_machine) -    { -        case EM_MIPS: -            result = FTM_MIPS; -            break; - -        case EM_386: -            result = FTM_386; -            break; - -        case EM_NONE: -        default: -            result = FTM_NONE; -            break; - -    } -    */ - -    return result; +    return "i386";  }  | 
