linux-user: Fix compilation with DEBUG defined
authorRiccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Wed, 19 May 2010 19:49:21 +0000 (21:49 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 28 May 2010 21:20:34 +0000 (23:20 +0200)
Signed-off-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
linux-user/flatload.c

index 6a2c3f959e559bc7f82e048120eda6d5149f9b2e..914de1f8885dda297aed8aac5574543eeb4bf71e 100644 (file)
@@ -338,7 +338,7 @@ failed:
 static void old_reloc(struct lib_info *libinfo, uint32_t rl)
 {
 #ifdef DEBUG
-       char *segment[] = { "TEXT", "DATA", "BSS", "*UNKNOWN*" };
+       const char *segment[] = { "TEXT", "DATA", "BSS", "*UNKNOWN*" };
 #endif
        uint32_t *ptr;
         uint32_t offset;