Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/whatis static + __dead
details: https://anonhg.NetBSD.org/src/rev/43752e17d545
branches: trunk
changeset: 769348:43752e17d545
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Sep 06 18:46:03 2011 +0000
description:
static + __dead
diffstat:
usr.bin/whatis/whatis.c | 21 ++++++++++-----------
1 files changed, 10 insertions(+), 11 deletions(-)
diffs (70 lines):
diff -r 31b02ad1c2db -r 43752e17d545 usr.bin/whatis/whatis.c
--- a/usr.bin/whatis/whatis.c Tue Sep 06 18:45:49 2011 +0000
+++ b/usr.bin/whatis/whatis.c Tue Sep 06 18:46:03 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: whatis.c,v 1.23 2008/07/21 14:19:28 lukem Exp $ */
+/* $NetBSD: whatis.c,v 1.24 2011/09/06 18:46:03 joerg Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)whatis.c 8.5 (Berkeley) 1/2/94";
#else
-__RCSID("$NetBSD: whatis.c,v 1.23 2008/07/21 14:19:28 lukem Exp $");
+__RCSID("$NetBSD: whatis.c,v 1.24 2011/09/06 18:46:03 joerg Exp $");
#endif
#endif /* not lint */
@@ -62,11 +62,10 @@
static int *found, foundman;
-int main(int, char **);
-void dashtrunc(char *, char *);
-int match(char *, char *);
-void usage(void);
-void whatis(char **, char *, int);
+static void dashtrunc(char *, char *);
+static int match(char *, char *);
+__dead static void usage(void);
+static void whatis(char **, char *, int);
int
main(int argc, char **argv)
@@ -147,7 +146,7 @@
exit(rv);
}
-void
+static void
whatis(char **argv, char *path, int buildpath)
{
char *end, *name, **p;
@@ -190,7 +189,7 @@
* match --
* match a full word
*/
-int
+static int
match(char *bp, char *str)
{
int len;
@@ -227,7 +226,7 @@
* dashtrunc --
* truncate a string at " - "
*/
-void
+static void
dashtrunc(char *from, char *to)
{
int ch;
@@ -242,7 +241,7 @@
* usage --
* print usage message and die
*/
-void
+static void
usage(void)
{
(void)fprintf(stderr,
Home |
Main Index |
Thread Index |
Old Index