diff options
author | ed <ed@FreeBSD.org> | 2011-11-06 08:18:11 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-06 08:18:11 +0000 |
commit | 78429597040baa125f02e11449aecbc7c81ebf1d (patch) | |
tree | 48da9f98545c8ebe4d2f07c9be7f0122289d985b /usr.bin/uniq | |
parent | 9cc47b87a71806b7ddf53b9c64b07ee113b56929 (diff) | |
download | FreeBSD-src-78429597040baa125f02e11449aecbc7c81ebf1d.zip FreeBSD-src-78429597040baa125f02e11449aecbc7c81ebf1d.tar.gz |
Add missing static keywords to uniq(1)
Diffstat (limited to 'usr.bin/uniq')
-rw-r--r-- | usr.bin/uniq/uniq.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/usr.bin/uniq/uniq.c b/usr.bin/uniq/uniq.c index 0a8f4f0..1077307 100644 --- a/usr.bin/uniq/uniq.c +++ b/usr.bin/uniq/uniq.c @@ -57,15 +57,15 @@ static const char rcsid[] = #include <wchar.h> #include <wctype.h> -int cflag, dflag, uflag, iflag; -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 int cflag, dflag, uflag, iflag; +static int numchars, numfields, repeats; + +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; |