1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

Add missing static keywords to c99(1)

This commit is contained in:
Ed Schouten 2011-11-06 08:13:58 +00:00
parent 9e43b5a097
commit 5227c53347
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227153

View File

@ -43,12 +43,12 @@ __FBSDID("$FreeBSD$");
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
char **args; static char **args;
u_int cargs, nargs; static u_int cargs, nargs;
void addarg(const char *); static void addarg(const char *);
void addlib(const char *); static void addlib(const char *);
void usage(void); static void usage(void);
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
@ -91,7 +91,7 @@ main(int argc, char *argv[])
err(1, "/usr/bin/cc"); err(1, "/usr/bin/cc");
} }
void static void
addarg(const char *item) addarg(const char *item)
{ {
if (nargs + 1 >= cargs) { if (nargs + 1 >= cargs) {
@ -104,7 +104,7 @@ addarg(const char *item)
args[nargs] = NULL; args[nargs] = NULL;
} }
void static void
addlib(const char *lib) addlib(const char *lib)
{ {
@ -123,7 +123,7 @@ addlib(const char *lib)
} }
} }
void static void
usage(void) usage(void)
{ {
(void)fprintf(stderr, "%s\n%s\n", (void)fprintf(stderr, "%s\n%s\n",