summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-19 23:49:41 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-19 23:49:41 +0000
commit92d23245c93eb7db64818384ee6c5366a465e29e (patch)
tree1ccb6d69a226fdc1efb283cc1b0d2cc321f5b942 /coreutils
parent40eaa9f0bb2c689552e39890592ed773d870c1fa (diff)
downloadbusybox-w32-92d23245c93eb7db64818384ee6c5366a465e29e.tar.gz
busybox-w32-92d23245c93eb7db64818384ee6c5366a465e29e.tar.bz2
busybox-w32-92d23245c93eb7db64818384ee6c5366a465e29e.zip
Another cleanup patch from Jeff Garzik <jgarzik@mandrakesoft.com>
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/expr.c2
-rw-r--r--coreutils/test.c4
-rw-r--r--coreutils/usleep.c2
3 files changed, 5 insertions, 3 deletions
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; \
225} 225}
226 226
227#define arithdivf(name, op) \ 227#define arithdivf(name, op) \
228int name (l, r) VALUE *l; VALUE *r; \ 228static int name (l, r) VALUE *l; VALUE *r; \
229{ \ 229{ \
230 if (!toarith (l) || !toarith (r)) \ 230 if (!toarith (l) || !toarith (r)) \
231 error_msg_and_die ( "non-numeric argument"); \ 231 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 {
110 PAREN 110 PAREN
111}; 111};
112 112
113struct t_op { 113static const struct t_op {
114 const char *op_text; 114 const char *op_text;
115 short op_num, op_type; 115 short op_num, op_type;
116} const ops [] = { 116} ops [] = {
117 {"-r", FILRD, UNOP}, 117 {"-r", FILRD, UNOP},
118 {"-w", FILWR, UNOP}, 118 {"-w", FILWR, UNOP},
119 {"-x", FILEX, UNOP}, 119 {"-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 @@
21 * 21 *
22 */ 22 */
23 23
24/* getopt not needed */
25
24#include <stdlib.h> 26#include <stdlib.h>
25#include <unistd.h> 27#include <unistd.h>
26#include "busybox.h" 28#include "busybox.h"