summaryrefslogtreecommitdiff
path: root/usr.bin/uniq
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2011-11-06 08:18:11 +0000
committerEd Schouten <ed@FreeBSD.org>2011-11-06 08:18:11 +0000
commit7f3cfdffbcdd98661adab868d7ef8886f646cb6a (patch)
tree48da9f98545c8ebe4d2f07c9be7f0122289d985b /usr.bin/uniq
parent73827c106278cc5bb40a363d3472aa63e554e31d (diff)
downloadsrc-test-7f3cfdffbcdd98661adab868d7ef8886f646cb6a.tar.gz
src-test-7f3cfdffbcdd98661adab868d7ef8886f646cb6a.zip
Add missing static keywords to uniq(1)
Notes
Notes: svn path=/head/; revision=227193
Diffstat (limited to 'usr.bin/uniq')
-rw-r--r--usr.bin/uniq/uniq.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/usr.bin/uniq/uniq.c b/usr.bin/uniq/uniq.c
index 0a8f4f0b1eed3..1077307dab1c1 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;