summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-10-28 13:24:00 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-10-28 13:24:00 +0000
commit532e4716b8f520b4d282500efe9249f492c79aa7 (patch)
tree0bd3b202c297e13035fc6f22acbf86715f1652f6 /usr.bin
parent041db9b191303dfca723776a970479a630d88c1b (diff)
prototype declared static, but function was not. add static to function.
millert@ otto@ ok
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ctags/C.c6
-rw-r--r--usr.bin/diff/diffreg.c6
-rw-r--r--usr.bin/grep/util.c4
3 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/ctags/C.c b/usr.bin/ctags/C.c
index 3d01c6128ab..99fa7795178 100644
--- a/usr.bin/ctags/C.c
+++ b/usr.bin/ctags/C.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: C.c,v 1.10 2003/06/12 20:58:09 deraadt Exp $ */
+/* $OpenBSD: C.c,v 1.11 2003/10/28 13:23:59 avsm Exp $ */
/* $NetBSD: C.c,v 1.3 1995/03/26 20:14:02 glass Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)C.c 8.4 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: C.c,v 1.10 2003/06/12 20:58:09 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: C.c,v 1.11 2003/10/28 13:23:59 avsm Exp $";
#endif
#endif /* not lint */
@@ -523,7 +523,7 @@ skip_comment(int commenttype)
* skip_string --
* skip to the end of a string or character constant.
*/
-void
+static void
skip_string(int key)
{
int c,
diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c
index 64dc10dbf26..848e19edf4f 100644
--- a/usr.bin/diff/diffreg.c
+++ b/usr.bin/diff/diffreg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diffreg.c,v 1.50 2003/09/07 07:53:01 tedu Exp $ */
+/* $OpenBSD: diffreg.c,v 1.51 2003/10/28 13:23:59 avsm Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -65,7 +65,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: diffreg.c,v 1.50 2003/09/07 07:53:01 tedu Exp $";
+static const char rcsid[] = "$OpenBSD: diffreg.c,v 1.51 2003/10/28 13:23:59 avsm Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -1209,7 +1209,7 @@ readhash(FILE *f)
return (sum == 0 ? 1 : sum);
}
-int
+static int
asciifile(FILE *f)
{
char buf[BUFSIZ];
diff --git a/usr.bin/grep/util.c b/usr.bin/grep/util.c
index 97af83c9eca..8b58175a329 100644
--- a/usr.bin/grep/util.c
+++ b/usr.bin/grep/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.17 2003/07/20 22:16:52 millert Exp $ */
+/* $OpenBSD: util.c,v 1.18 2003/10/28 13:23:59 avsm Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@ -469,7 +469,7 @@ grep_strdup(const char *str)
* Returns: i >= 0 on failure (position that it failed)
* -1 on success
*/
-int
+static int
grep_cmp(const unsigned char *pattern, const unsigned char *data, size_t len)
{
int i;