]> git.sur5r.net Git - openocd/commitdiff
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 99bd983392c65dab37db9d7894d2c88c1d03b681..ce8cbe193e8bf2bfdd3d2e259668ec1b9b5bf0ec 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 1e9a2965e35c92250ace2fd671f2e1e3c497808c..eeb6694c93c28fd1590425ba409de19be51b4a63 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",
 };