diff options
author | ed <ed@FreeBSD.org> | 2011-11-06 08:14:40 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-06 08:14:40 +0000 |
commit | 4b43e01fe9e206c33a893ece43907c009c64d762 (patch) | |
tree | 5ab79e4ba1734deaa8d11391daf96459c5485932 /usr.bin/cpuset/cpuset.c | |
parent | 88b6b62757f917719d6db106b45375e622f151f8 (diff) | |
download | FreeBSD-src-4b43e01fe9e206c33a893ece43907c009c64d762.zip FreeBSD-src-4b43e01fe9e206c33a893ece43907c009c64d762.tar.gz |
Add missing static keywords to cpuset(1)
Diffstat (limited to 'usr.bin/cpuset/cpuset.c')
-rw-r--r-- | usr.bin/cpuset/cpuset.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/usr.bin/cpuset/cpuset.c b/usr.bin/cpuset/cpuset.c index 0c0a2f2..898c3e5 100644 --- a/usr.bin/cpuset/cpuset.c +++ b/usr.bin/cpuset/cpuset.c @@ -46,22 +46,22 @@ __FBSDID("$FreeBSD$"); #include <unistd.h> #include <string.h> -int Cflag; -int cflag; -int gflag; -int iflag; -int jflag; -int lflag; -int pflag; -int rflag; -int sflag; -int tflag; -int xflag; -id_t id; -cpulevel_t level; -cpuwhich_t which; +static int Cflag; +static int cflag; +static int gflag; +static int iflag; +static int jflag; +static int lflag; +static int pflag; +static int rflag; +static int sflag; +static int tflag; +static int xflag; +static id_t id; +static cpulevel_t level; +static cpuwhich_t which; -void usage(void); +static void usage(void); static void printset(cpuset_t *mask); @@ -161,8 +161,8 @@ printset(cpuset_t *mask) printf("\n"); } -const char *whichnames[] = { NULL, "tid", "pid", "cpuset", "irq", "jail" }; -const char *levelnames[] = { NULL, " root", " cpuset", "" }; +static const char *whichnames[] = { NULL, "tid", "pid", "cpuset", "irq", "jail" }; +static const char *levelnames[] = { NULL, " root", " cpuset", "" }; static void printaffinity(void) @@ -343,7 +343,7 @@ main(int argc, char *argv[]) exit(EXIT_SUCCESS); } -void +static void usage(void) { |