From 8775faaeafdb04c8fc390a822a4588a95c98e4b2 Mon Sep 17 00:00:00 2001 From: andersen Date: Mon, 19 Mar 2001 23:49:41 +0000 Subject: Another cleanup patch from Jeff Garzik git-svn-id: svn://busybox.net/trunk/busybox@2163 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- coreutils/expr.c | 2 +- coreutils/test.c | 4 ++-- coreutils/usleep.c | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'coreutils') diff --git a/coreutils/expr.c b/coreutils/expr.c index 10aaa6be1..4a537bf33 100644 --- a/coreutils/expr.c +++ b/coreutils/expr.c @@ -225,7 +225,7 @@ int name (l, r) VALUE *l; VALUE *r; \ } #define arithdivf(name, op) \ -int name (l, r) VALUE *l; VALUE *r; \ +static int name (l, r) VALUE *l; VALUE *r; \ { \ if (!toarith (l) || !toarith (r)) \ error_msg_and_die ( "non-numeric argument"); \ diff --git a/coreutils/test.c b/coreutils/test.c index ab9c23e4b..79db8cbb6 100644 --- a/coreutils/test.c +++ b/coreutils/test.c @@ -110,10 +110,10 @@ enum token_types { PAREN }; -struct t_op { +static const struct t_op { const char *op_text; short op_num, op_type; -} const ops [] = { +} ops [] = { {"-r", FILRD, UNOP}, {"-w", FILWR, UNOP}, {"-x", FILEX, UNOP}, diff --git a/coreutils/usleep.c b/coreutils/usleep.c index 92e4437c5..6023bf430 100644 --- a/coreutils/usleep.c +++ b/coreutils/usleep.c @@ -21,6 +21,8 @@ * */ +/* getopt not needed */ + #include #include #include "busybox.h" -- cgit v1.2.3-55-g6feb