diff options
author | ed <ed@FreeBSD.org> | 2011-11-06 08:15:53 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-06 08:15:53 +0000 |
commit | b3e1c421c63a50b404ad9882c7de1f2b2782a86f (patch) | |
tree | 0ecba90834cc255f3e216f6b98f42e906cac421a /usr.bin | |
parent | 778a941742688a02dbd18968fe11568c0f050305 (diff) | |
download | FreeBSD-src-b3e1c421c63a50b404ad9882c7de1f2b2782a86f.zip FreeBSD-src-b3e1c421c63a50b404ad9882c7de1f2b2782a86f.tar.gz |
Add missing static keywords to logger(1)
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/logger/logger.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/logger/logger.c b/usr.bin/logger/logger.c index 68828ed..d3c4786 100644 --- a/usr.bin/logger/logger.c +++ b/usr.bin/logger/logger.c @@ -57,8 +57,8 @@ __FBSDID("$FreeBSD$"); #define SYSLOG_NAMES #include <syslog.h> -int decode(char *, CODE *); -int pencode(char *); +static int decode(char *, CODE *); +static int pencode(char *); static void logmessage(int, const char *, const char *, const char *, const char *); static void usage(void); @@ -70,11 +70,11 @@ struct socks { }; #ifdef INET6 -int family = PF_UNSPEC; /* protocol family (IPv4, IPv6 or both) */ +static int family = PF_UNSPEC; /* protocol family (IPv4, IPv6 or both) */ #else -int family = PF_INET; /* protocol family (IPv4 only) */ +static int family = PF_INET; /* protocol family (IPv4 only) */ #endif -int send_to_all = 0; /* send message to all IPv4/IPv6 addresses */ +static int send_to_all = 0; /* send message to all IPv4/IPv6 addresses */ /* * logger -- read and log utility @@ -176,7 +176,7 @@ main(int argc, char *argv[]) /* * Send the message to syslog, either on the local host, or on a remote host */ -void +static void logmessage(int pri, const char *tag, const char *host, const char *svcname, const char *buf) { @@ -246,7 +246,7 @@ logmessage(int pri, const char *tag, const char *host, const char *svcname, /* * Decode a symbolic name to a numeric value */ -int +static int pencode(char *s) { char *save; @@ -270,7 +270,7 @@ pencode(char *s) return ((lev & LOG_PRIMASK) | (fac & LOG_FACMASK)); } -int +static int decode(char *name, CODE *codetab) { CODE *c; |