From 74324c86663f57a19c1de303ee8c8e5449db9ef2 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 4 Jun 2007 10:16:52 +0000 Subject: Audit bb_common_bufsiz usage, add script which looks for misuse. tr: stop using globals needlessly. code: -103 bytes --- coreutils/split.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils/split.c') diff --git a/coreutils/split.c b/coreutils/split.c index 27f9cfdd6..7b4f8c2c0 100644 --- a/coreutils/split.c +++ b/coreutils/split.c @@ -49,7 +49,7 @@ static char *next_file(char *old, unsigned suffix_len) } #define read_buffer bb_common_bufsiz1 -enum { READ_BUFFER_SIZE = sizeof(bb_common_bufsiz1) - 1 }; +enum { READ_BUFFER_SIZE = COMMON_BUFSIZE - 1 }; #define SPLIT_OPT_l (1<<0) #define SPLIT_OPT_b (1<<1) -- cgit v1.2.3