summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorEric Andersen2001-10-18 04:11:39 +0000
committerEric Andersen2001-10-18 04:11:39 +0000
commit74400ccfd08e8ff72b9147951dd437dd3bb7abb1 (patch)
treed1e5c30982d3ef735c33b3b52722aaaadd8daaaa /coreutils
parent8acbf1d3079e9ed6d15c39bd57135b13ecb4076f (diff)
downloadbusybox-74400ccfd08e8ff72b9147951dd437dd3bb7abb1.zip
busybox-74400ccfd08e8ff72b9147951dd437dd3bb7abb1.tar.gz
Scrub up some function prototypes.
-Erik
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/tail.c2
-rw-r--r--coreutils/test.c42
2 files changed, 22 insertions, 22 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c
index 90cc2a6..5e5fbc1 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -51,7 +51,7 @@ static void tailbuf_append(char *buf, int len)
taillen += len;
}
-static void tailbuf_trunc()
+static void tailbuf_trunc(void)
{
char *s;
s = memchr(tailbuf, '\n', taillen);
diff --git a/coreutils/test.c b/coreutils/test.c
index 9c66cbb..3404b02 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -158,21 +158,21 @@ static struct t_op const *t_wp_op;
static gid_t *group_array = NULL;
static int ngroups;
-static enum token t_lex();
-static int oexpr();
-static int aexpr();
-static int nexpr();
-static int binop();
-static int primary();
-static int filstat();
-static int getn();
-static int newerf();
-static int olderf();
-static int equalf();
-static void syntax();
-static int test_eaccess();
-static int is_a_group_member();
-static void initialize_group_array();
+static enum token t_lex(char* s);
+static int oexpr(enum token n);
+static int aexpr(enum token n);
+static int nexpr(enum token n);
+static int binop(void);
+static int primary(enum token n);
+static int filstat(char *nm, enum token mode);
+static int getn(const char *s);
+static int newerf(const char *f1, const char *f2);
+static int olderf(const char *f1, const char *f2);
+static int equalf(const char *f1, const char *f2);
+static void syntax(const char *op, const char *msg);
+static int test_eaccess(char *path, int mode);
+static int is_a_group_member(gid_t gid);
+static void initialize_group_array(void);
extern int
test_main(int argc, char** argv)
@@ -226,8 +226,8 @@ test_main(int argc, char** argv)
static void
syntax(op, msg)
- char *op;
- char *msg;
+ const char *op;
+ const char *msg;
{
if (op && *op)
error_msg_and_die("%s: %s", op, msg);
@@ -458,7 +458,7 @@ t_lex(s)
/* atoi with error detection */
static int
getn(s)
- char *s;
+ const char *s;
{
char *p;
long r;
@@ -480,7 +480,7 @@ getn(s)
static int
newerf (f1, f2)
-char *f1, *f2;
+const char *f1, *f2;
{
struct stat b1, b2;
@@ -491,7 +491,7 @@ char *f1, *f2;
static int
olderf (f1, f2)
-char *f1, *f2;
+const char *f1, *f2;
{
struct stat b1, b2;
@@ -502,7 +502,7 @@ char *f1, *f2;
static int
equalf (f1, f2)
-char *f1, *f2;
+const char *f1, *f2;
{
struct stat b1, b2;