diff options
author | charnier <charnier@FreeBSD.org> | 2012-01-25 08:42:19 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2012-01-25 08:42:19 +0000 |
commit | 11c560ec5e9b4b4c1e625e3f949adc3e5f025826 (patch) | |
tree | 87e53751614cd8153750969022f9e8aa01d069bc /bin | |
parent | 213e9c871367df9e4445a15b23c0d8943da17a77 (diff) | |
download | FreeBSD-src-11c560ec5e9b4b4c1e625e3f949adc3e5f025826.zip FreeBSD-src-11c560ec5e9b4b4c1e625e3f949adc3e5f025826.tar.gz |
Add prototypes, ANSIfy functions definitions to reduce WARNS=6 output.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/arith_yacc.c | 3 | ||||
-rw-r--r-- | bin/sh/arith_yylex.c | 2 | ||||
-rw-r--r-- | bin/sh/exec.c | 2 | ||||
-rw-r--r-- | bin/sh/histedit.c | 3 | ||||
-rw-r--r-- | bin/sh/jobs.c | 1 |
5 files changed, 6 insertions, 5 deletions
diff --git a/bin/sh/arith_yacc.c b/bin/sh/arith_yacc.c index 48c63ea..fbf9a64 100644 --- a/bin/sh/arith_yacc.c +++ b/bin/sh/arith_yacc.c @@ -84,6 +84,8 @@ static const char prec[ARITH_BINOP_MAX - ARITH_BINOP_MIN] = { #define ARITH_MAX_PREC 8 +int letcmd(int, char **); + static __dead2 void yyerror(const char *s) { error("arithmetic expression: %s: \"%s\"", s, arith_startbuf); @@ -377,4 +379,3 @@ letcmd(int argc, char **argv) out1fmt(ARITH_FORMAT_STR "\n", i); return !i; } - diff --git a/bin/sh/arith_yylex.c b/bin/sh/arith_yylex.c index cfb9724d..f6eebdb 100644 --- a/bin/sh/arith_yylex.c +++ b/bin/sh/arith_yylex.c @@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$"); extern const char *arith_buf; int -yylex() +yylex(void) { int value; const char *buf = arith_buf; diff --git a/bin/sh/exec.c b/bin/sh/exec.c index 468f940..82cb3ac 100644 --- a/bin/sh/exec.c +++ b/bin/sh/exec.c @@ -493,7 +493,7 @@ hashcd(void) */ void -changepath(const char *newval) +changepath(const char *newval __unused) { clearcmdentry(); } diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index e29bcab..6371599 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -160,8 +160,7 @@ bad: void -sethistsize(hs) - const char *hs; +sethistsize(const char *hs) { int histsize; HistEvent he; diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c index 75b503e..232be8b 100644 --- a/bin/sh/jobs.c +++ b/bin/sh/jobs.c @@ -92,6 +92,7 @@ static void restartjob(struct job *); #endif static void freejob(struct job *); static struct job *getjob(char *); +pid_t getjobpgrp(char *); static pid_t dowait(int, struct job *); static pid_t waitproc(int, int *); static void checkzombies(void); |