svn commit: trunk/busybox: runit scripts

vda at busybox.net vda at busybox.net
Thu Sep 27 10:08:03 UTC 2007


Author: vda
Date: 2007-09-27 03:08:02 -0700 (Thu, 27 Sep 2007)
New Revision: 20057

Log:
make variables static



Modified:
   trunk/busybox/runit/runsvdir.c
   trunk/busybox/runit/sv.c
   trunk/busybox/scripts/find_stray_common_vars


Changeset:
Modified: trunk/busybox/runit/runsvdir.c
===================================================================
--- trunk/busybox/runit/runsvdir.c	2007-09-27 07:38:09 UTC (rev 20056)
+++ trunk/busybox/runit/runsvdir.c	2007-09-27 10:08:02 UTC (rev 20057)
@@ -42,7 +42,7 @@
 	smallint isgone;
 };
 
-struct service *sv;
+static struct service *sv;
 static char *svdir;
 static int svnum;
 static char *rplog;

Modified: trunk/busybox/runit/sv.c
===================================================================
--- trunk/busybox/runit/sv.c	2007-09-27 07:38:09 UTC (rev 20056)
+++ trunk/busybox/runit/sv.c	2007-09-27 10:08:02 UTC (rev 20057)
@@ -163,7 +163,7 @@
 static unsigned rc;
 /* "Bernstein" time format: unix + 0x400000000000000aULL */
 static uint64_t tstart, tnow;
-svstatus_t svstatus;
+static svstatus_t svstatus;
 
 
 static void fatal_cannot(const char *m1) ATTRIBUTE_NORETURN;

Modified: trunk/busybox/scripts/find_stray_common_vars
===================================================================
--- trunk/busybox/scripts/find_stray_common_vars	2007-09-27 07:38:09 UTC (rev 20056)
+++ trunk/busybox/scripts/find_stray_common_vars	2007-09-27 10:08:02 UTC (rev 20057)
@@ -3,7 +3,7 @@
 # Common variables are elusive, they don't show up in size output!
 # This script will show all commons in *.o, sorted by size
 
-find -name '*.o' \
+find ! -path './scripts/*' -a ! -name built-in.o -a -name '*.o' \
 | while read name; do
     b=`basename "$name"`
     nm "$name" | sed "s/^/$b: /"




More information about the busybox-cvs mailing list