From owner-svn-src-head@FreeBSD.ORG Sun Nov 6 08:15:54 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A6251066053; Sun, 6 Nov 2011 08:15:54 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 09EA48FC15; Sun, 6 Nov 2011 08:15:54 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pA68FrGD008585; Sun, 6 Nov 2011 08:15:53 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA68Fr2g008583; Sun, 6 Nov 2011 08:15:53 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201111060815.pA68Fr2g008583@svn.freebsd.org> From: Ed Schouten Date: Sun, 6 Nov 2011 08:15:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227170 - head/usr.bin/logger X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2011 08:15:54 -0000 Author: ed Date: Sun Nov 6 08:15:53 2011 New Revision: 227170 URL: http://svn.freebsd.org/changeset/base/227170 Log: Add missing static keywords to logger(1) Modified: head/usr.bin/logger/logger.c Modified: head/usr.bin/logger/logger.c ============================================================================== --- head/usr.bin/logger/logger.c Sun Nov 6 08:15:48 2011 (r227169) +++ head/usr.bin/logger/logger.c Sun Nov 6 08:15:53 2011 (r227170) @@ -57,8 +57,8 @@ __FBSDID("$FreeBSD$"); #define SYSLOG_NAMES #include -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, con /* * 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;