ARMV4_5: review scope of data
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 10 Apr 2010 08:46:01 +0000 (16:46 +0800)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 10 Apr 2010 08:46:01 +0000 (16:46 +0800)
Add "static" qualifier to private data.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/arm.h
src/target/armv4_5.c

index 99bd983..ce8cbe1 100644 (file)
@@ -80,8 +80,6 @@ enum arm_state {
        ARM_STATE_THUMB_EE,
 };
 
-extern const char *arm_state_strings[];
-
 #define ARM_COMMON_MAGIC 0x0A450A45
 
 /**
index 1e9a296..eeb6694 100644 (file)
@@ -217,7 +217,7 @@ enum arm_mode armv4_5_number_to_mode(int number)
        }
 }
 
-const char *arm_state_strings[] =
+static const char *arm_state_strings[] =
 {
        "ARM", "Thumb", "Jazelle", "ThumbEE",
 };