diff options
Diffstat (limited to 'src/format/java')
| -rwxr-xr-x | src/format/java/java.c | 29 | 
1 files changed, 3 insertions, 26 deletions
diff --git a/src/format/java/java.c b/src/format/java/java.c index 16c9fb7..e477b82 100755 --- a/src/format/java/java.c +++ b/src/format/java/java.c @@ -46,7 +46,7 @@ static void g_java_format_class_init(GJavaFormatClass *);  static void g_java_format_init(GJavaFormat *);  /* Indique le type d'architecture visée par le format. */ -static FormatTargetMachine g_java_format_get_target_machine(const GJavaFormat *); +static const char *g_java_format_get_target_machine(const GJavaFormat *);  /* Fournit la position correspondant à une adresse virtuelle. */  static bool g_java_format_translate_address_into_offset(const GJavaFormat *, vmpa_t, off_t *); @@ -181,32 +181,9 @@ GBinFormat *g_java_format_new(const bin_t *content, off_t length)  *                                                                             *  ******************************************************************************/ -static FormatTargetMachine g_java_format_get_target_machine(const GJavaFormat *format) +static const char *g_java_format_get_target_machine(const GJavaFormat *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 "jvm";  }  | 
