From: Antonio Borneo Date: Sat, 10 Apr 2010 13:52:33 +0000 (+0800) Subject: NOR/STR7X: review scope of data X-Git-Tag: v0.5.0-rc1~762 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=d7246f452f4da9767e9ebdd6fb43b982954c02bf;ds=sidebyside NOR/STR7X: review scope of data Add "static" qualifier to private data. Signed-off-by: Antonio Borneo --- diff --git a/src/flash/nor/str7x.c b/src/flash/nor/str7x.c index fa1744c5e6..d5e8e28808 100644 --- a/src/flash/nor/str7x.c +++ b/src/flash/nor/str7x.c @@ -31,7 +31,7 @@ #include -struct str7x_mem_layout mem_layout_str7bank0[] = { +static struct str7x_mem_layout mem_layout_str7bank0[] = { {0x00000000, 0x02000, 0x01}, {0x00002000, 0x02000, 0x02}, {0x00004000, 0x02000, 0x04}, @@ -42,7 +42,7 @@ struct str7x_mem_layout mem_layout_str7bank0[] = { {0x00030000, 0x10000, 0x80} }; -struct str7x_mem_layout mem_layout_str7bank1[] = { +static struct str7x_mem_layout mem_layout_str7bank1[] = { {0x00000000, 0x02000, 0x10000}, {0x00002000, 0x02000, 0x20000} };