diff options
author | jmallett <jmallett@FreeBSD.org> | 2004-03-15 04:10:29 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2004-03-15 04:10:29 +0000 |
commit | ae60e6610857e6052db5412db5e6a6fb2c82afd8 (patch) | |
tree | 19df47a516af4f0faba65155edd6ee42e030eff0 | |
parent | c228ea938aa1a06faa10191af849f0164a7e2273 (diff) | |
download | FreeBSD-src-ae60e6610857e6052db5412db5e6a6fb2c82afd8.zip FreeBSD-src-ae60e6610857e6052db5412db5e6a6fb2c82afd8.tar.gz |
static and const.
-rw-r--r-- | bin/kill/kill.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/kill/kill.c b/bin/kill/kill.c index a1c8515..44c084e 100644 --- a/bin/kill/kill.c +++ b/bin/kill/kill.c @@ -53,10 +53,10 @@ __FBSDID("$FreeBSD$"); #include <stdlib.h> #include <string.h> -void nosig(char *); -void printsignals(FILE *); -int signame_to_signum(char *); -void usage(void); +static void nosig(const char *); +static void printsignals(FILE *); +static int signame_to_signum(const char *); +static void usage(void); int main(int argc, char *argv[]) @@ -139,8 +139,8 @@ main(int argc, char *argv[]) exit(errors); } -int -signame_to_signum(char *sig) +static int +signame_to_signum(const char *sig) { int n; @@ -153,8 +153,8 @@ signame_to_signum(char *sig) return (-1); } -void -nosig(char *name) +static void +nosig(const char *name) { warnx("unknown signal %s; valid signals:", name); @@ -162,7 +162,7 @@ nosig(char *name) exit(1); } -void +static void printsignals(FILE *fp) { int n; @@ -176,7 +176,7 @@ printsignals(FILE *fp) } } -void +static void usage(void) { |