make variables static

This commit is contained in:
Denis Vlasenko 2007-09-27 10:08:02 +00:00
parent a619b85ef5
commit c9dc2ac578
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ struct service {
smallint isgone; smallint isgone;
}; };
struct service *sv; static struct service *sv;
static char *svdir; static char *svdir;
static int svnum; static int svnum;
static char *rplog; static char *rplog;

View File

@ -163,7 +163,7 @@ static char **service;
static unsigned rc; static unsigned rc;
/* "Bernstein" time format: unix + 0x400000000000000aULL */ /* "Bernstein" time format: unix + 0x400000000000000aULL */
static uint64_t tstart, tnow; static uint64_t tstart, tnow;
svstatus_t svstatus; static svstatus_t svstatus;
static void fatal_cannot(const char *m1) ATTRIBUTE_NORETURN; static void fatal_cannot(const char *m1) ATTRIBUTE_NORETURN;

View File

@ -3,7 +3,7 @@
# Common variables are elusive, they don't show up in size output! # Common variables are elusive, they don't show up in size output!
# This script will show all commons in *.o, sorted by size # 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 | while read name; do
b=`basename "$name"` b=`basename "$name"`
nm "$name" | sed "s/^/$b: /" nm "$name" | sed "s/^/$b: /"