From owner-svn-src-head@FreeBSD.ORG Sun Nov 6 08:18:12 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 4662F1066D82; Sun, 6 Nov 2011 08:18:12 +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 08FD38FC0C; Sun, 6 Nov 2011 08:18:12 +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 pA68IBMS009517; Sun, 6 Nov 2011 08:18:11 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA68IBCC009515; Sun, 6 Nov 2011 08:18:11 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201111060818.pA68IBCC009515@svn.freebsd.org> From: Ed Schouten Date: Sun, 6 Nov 2011 08:18:11 +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: r227193 - head/usr.bin/uniq 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:18:12 -0000 Author: ed Date: Sun Nov 6 08:18:11 2011 New Revision: 227193 URL: http://svn.freebsd.org/changeset/base/227193 Log: Add missing static keywords to uniq(1) Modified: head/usr.bin/uniq/uniq.c Modified: head/usr.bin/uniq/uniq.c ============================================================================== --- head/usr.bin/uniq/uniq.c Sun Nov 6 08:18:05 2011 (r227192) +++ head/usr.bin/uniq/uniq.c Sun Nov 6 08:18:11 2011 (r227193) @@ -57,15 +57,15 @@ static const char rcsid[] = #include #include -int cflag, dflag, uflag, iflag; -int numchars, numfields, repeats; +static int cflag, dflag, uflag, iflag; +static int numchars, numfields, repeats; -FILE *file(const char *, const char *); -wchar_t *convert(const char *); -int inlcmp(const char *, const char *); -void show(FILE *, const char *); -wchar_t *skip(wchar_t *); -void obsolete(char *[]); +static FILE *file(const char *, const char *); +static wchar_t *convert(const char *); +static int inlcmp(const char *, const char *); +static void show(FILE *, const char *); +static wchar_t *skip(wchar_t *); +static void obsolete(char *[]); static void usage(void); int @@ -184,7 +184,7 @@ main (int argc, char *argv[]) exit(0); } -wchar_t * +static wchar_t * convert(const char *str) { size_t n; @@ -218,7 +218,7 @@ convert(const char *str) return (ret); } -int +static int inlcmp(const char *s1, const char *s2) { int c1, c2; @@ -241,7 +241,7 @@ inlcmp(const char *s1, const char *s2) * Output a line depending on the flags and number of repetitions * of the line. */ -void +static void show(FILE *ofp, const char *str) { @@ -251,7 +251,7 @@ show(FILE *ofp, const char *str) (void)fprintf(ofp, "%s", str); } -wchar_t * +static wchar_t * skip(wchar_t *str) { int nchars, nfields; @@ -267,7 +267,7 @@ skip(wchar_t *str) return(str); } -FILE * +static FILE * file(const char *name, const char *mode) { FILE *fp; @@ -277,7 +277,7 @@ file(const char *name, const char *mode) return(fp); } -void +static void obsolete(char *argv[]) { int len;