diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-27 10:08:02 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-27 10:08:02 +0000 |
commit | c9dc2ac578278e86be248cc21e53081f7054da83 (patch) | |
tree | 72754c2d47216adf8af915e7ace49c4576c5108f | |
parent | a619b85ef5c4c8215bf11552e9a6433183f22108 (diff) | |
download | busybox-w32-c9dc2ac578278e86be248cc21e53081f7054da83.tar.gz busybox-w32-c9dc2ac578278e86be248cc21e53081f7054da83.tar.bz2 busybox-w32-c9dc2ac578278e86be248cc21e53081f7054da83.zip |
make variables static
-rw-r--r-- | runit/runsvdir.c | 2 | ||||
-rw-r--r-- | runit/sv.c | 2 | ||||
-rwxr-xr-x | scripts/find_stray_common_vars | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/runit/runsvdir.c b/runit/runsvdir.c index 94397bc36..8d25923d4 100644 --- a/runit/runsvdir.c +++ b/runit/runsvdir.c | |||
@@ -42,7 +42,7 @@ struct service { | |||
42 | smallint isgone; | 42 | smallint isgone; |
43 | }; | 43 | }; |
44 | 44 | ||
45 | struct service *sv; | 45 | static struct service *sv; |
46 | static char *svdir; | 46 | static char *svdir; |
47 | static int svnum; | 47 | static int svnum; |
48 | static char *rplog; | 48 | static char *rplog; |
diff --git a/runit/sv.c b/runit/sv.c index c87f565cc..406dc6fc8 100644 --- a/runit/sv.c +++ b/runit/sv.c | |||
@@ -163,7 +163,7 @@ static char **service; | |||
163 | static unsigned rc; | 163 | static unsigned rc; |
164 | /* "Bernstein" time format: unix + 0x400000000000000aULL */ | 164 | /* "Bernstein" time format: unix + 0x400000000000000aULL */ |
165 | static uint64_t tstart, tnow; | 165 | static uint64_t tstart, tnow; |
166 | svstatus_t svstatus; | 166 | static svstatus_t svstatus; |
167 | 167 | ||
168 | 168 | ||
169 | static void fatal_cannot(const char *m1) ATTRIBUTE_NORETURN; | 169 | static void fatal_cannot(const char *m1) ATTRIBUTE_NORETURN; |
diff --git a/scripts/find_stray_common_vars b/scripts/find_stray_common_vars index 9f26bc7ac..3a25d7a8d 100755 --- a/scripts/find_stray_common_vars +++ b/scripts/find_stray_common_vars | |||
@@ -3,7 +3,7 @@ | |||
3 | # Common variables are elusive, they don't show up in size output! | 3 | # Common variables are elusive, they don't show up in size output! |
4 | # This script will show all commons in *.o, sorted by size | 4 | # This script will show all commons in *.o, sorted by size |
5 | 5 | ||
6 | find -name '*.o' \ | 6 | find ! -path './scripts/*' -a ! -name built-in.o -a -name '*.o' \ |
7 | | while read name; do | 7 | | while read name; do |
8 | b=`basename "$name"` | 8 | b=`basename "$name"` |
9 | nm "$name" | sed "s/^/$b: /" | 9 | nm "$name" | sed "s/^/$b: /" |