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 --- miscutils/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils') diff --git a/miscutils/dc.c b/miscutils/dc.c index 872b814cd..ced5149df 100644 --- a/miscutils/dc.c +++ b/miscutils/dc.c @@ -8,7 +8,7 @@ /* Tiny RPN calculator, because "expr" didn't give me bitwise operations. */ -enum { STACK_SIZE = sizeof(bb_common_bufsiz1) / sizeof(double) }; +enum { STACK_SIZE = COMMON_BUFSIZE / sizeof(double) }; #define stack ((double*)&bb_common_bufsiz1) static unsigned int pointer; -- cgit v1.2.3