Another cleanup patch from Jeff Garzik <jgarzik@mandrakesoft.com>

This commit is contained in:
Eric Andersen
2001-03-19 23:49:41 +00:00
parent 40eaa9f0bb
commit 92d23245c9
14 changed files with 36 additions and 102 deletions

View File

@@ -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"); \

View File

@@ -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},

View File

@@ -21,6 +21,8 @@
*
*/
/* getopt not needed */
#include <stdlib.h>
#include <unistd.h>
#include "busybox.h"