Add prototypes, ANSIfy functions definitions to reduce WARNS=6 output.
This commit is contained in:
parent
a22ed494f8
commit
2fae4c3d95
@ -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;
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
|
||||
extern const char *arith_buf;
|
||||
|
||||
int
|
||||
yylex()
|
||||
yylex(void)
|
||||
{
|
||||
int value;
|
||||
const char *buf = arith_buf;
|
||||
|
@ -493,7 +493,7 @@ hashcd(void)
|
||||
*/
|
||||
|
||||
void
|
||||
changepath(const char *newval)
|
||||
changepath(const char *newval __unused)
|
||||
{
|
||||
clearcmdentry();
|
||||
}
|
||||
|
@ -160,8 +160,7 @@ histedit(void)
|
||||
|
||||
|
||||
void
|
||||
sethistsize(hs)
|
||||
const char *hs;
|
||||
sethistsize(const char *hs)
|
||||
{
|
||||
int histsize;
|
||||
HistEvent he;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user