aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-04-19 14:47:11 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-04-19 14:47:11 +0000
commit8581863a1b536e2db20036e680b58cc07c54ad55 (patch)
treedd38275bbe7988a0d2c8a806ea51c99e326fa772 /libbb
parent516a0ca2dc92d9ea103535863102cc5425fe648e (diff)
downloadbusybox-w32-8581863a1b536e2db20036e680b58cc07c54ad55.tar.gz
busybox-w32-8581863a1b536e2db20036e680b58cc07c54ad55.tar.bz2
busybox-w32-8581863a1b536e2db20036e680b58cc07c54ad55.zip
procps: remove all global variables
text data bss dec hex filename 1462 14 24 1500 5dc busybox.t2/procps/ps.o 1484 0 0 1484 5cc busybox.t3/procps/ps.o 3122 0 252 3374 d2e busybox.t1/procps/top.o 3117 0 0 3117 c2d busybox.t3/procps/top.o
Diffstat (limited to 'libbb')
-rw-r--r--libbb/messages.c2
-rw-r--r--libbb/procps.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libbb/messages.c b/libbb/messages.c
index 12a165ad7..3febe7645 100644
--- a/libbb/messages.c
+++ b/libbb/messages.c
@@ -54,7 +54,7 @@ WTMP_FILE;
54# error unknown path to wtmp file 54# error unknown path to wtmp file
55#endif 55#endif
56 56
57char bb_common_bufsiz1[BUFSIZ+1]; 57char bb_common_bufsiz1[(BUFSIZ > 256*sizeof(void*) ? BUFSIZ : 256*sizeof(void*)) + 1];
58 58
59struct globals; 59struct globals;
60/* Make it reside in R/W memory: */ 60/* Make it reside in R/W memory: */
diff --git a/libbb/procps.c b/libbb/procps.c
index 053f7d225..946f569f5 100644
--- a/libbb/procps.c
+++ b/libbb/procps.c
@@ -184,7 +184,7 @@ procps_status_t* procps_scan(procps_status_t* sp, int flags)
184 184
185 sp->tty_str[0] = '?'; 185 sp->tty_str[0] = '?';
186 /* sp->tty_str[1] = '\0'; - done by memset */ 186 /* sp->tty_str[1] = '\0'; - done by memset */
187 if (tty >= 0) /* tty field of "-1" means "no tty" */ 187 if (tty) /* tty field of "0" means "no tty" */
188 snprintf(sp->tty_str, sizeof(sp->tty_str), "%u,%u", 188 snprintf(sp->tty_str, sizeof(sp->tty_str), "%u,%u",
189 (tty >> 8) & 0xfff, /* major */ 189 (tty >> 8) & 0xfff, /* major */
190 (tty & 0xff) | ((tty >> 12) & 0xfff00)); 190 (tty & 0xff) | ((tty >> 12) & 0xfff00));