From 8581863a1b536e2db20036e680b58cc07c54ad55 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 19 Apr 2007 14:47:11 +0000 Subject: 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 --- include/libbb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/libbb.h') diff --git a/include/libbb.h b/include/libbb.h index 31ded7e9c..fce10f310 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -931,8 +931,8 @@ extern const int const_int_1; #ifndef BUFSIZ #define BUFSIZ 4096 #endif -// TODO: provide hard guarantees on minimum size of bb_common_bufsiz1 -extern char bb_common_bufsiz1[BUFSIZ+1]; +/* Providing hard guarantee on minimum size (think of BUFSIZ == 128) */ +extern char bb_common_bufsiz1[(BUFSIZ > 256*sizeof(void*) ? BUFSIZ : 256*sizeof(void*)) + 1]; /* This struct is deliberately not defined. */ /* See docs/keep_data_small.txt */ struct globals; -- cgit v1.2.3