Module Name: src
Committed By: joerg
Date: Sun Sep 4 20:28:59 UTC 2011
Modified Files:
src/usr.bin/logger: logger.c
Log Message:
static + __dead
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/logger/logger.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/logger/logger.c
diff -u src/usr.bin/logger/logger.c:1.14 src/usr.bin/logger/logger.c:1.15
--- src/usr.bin/logger/logger.c:1.14 Sun Apr 12 13:53:48 2009
+++ src/usr.bin/logger/logger.c Sun Sep 4 20:28:59 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: logger.c,v 1.14 2009/04/12 13:53:48 lukem Exp $ */
+/* $NetBSD: logger.c,v 1.15 2011/09/04 20:28:59 joerg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)logger.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: logger.c,v 1.14 2009/04/12 13:53:48 lukem Exp $");
+__RCSID("$NetBSD: logger.c,v 1.15 2011/09/04 20:28:59 joerg Exp $");
#endif /* not lint */
#include <errno.h>
@@ -53,10 +53,9 @@
#define SYSLOG_NAMES
#include <syslog.h>
-int decode(const char *, const CODE *);
-int pencode(char *);
-int main(int, char **);
-void usage(void);
+static int decode(const char *, const CODE *);
+static int pencode(char *);
+__dead static void usage(void);
/*
* logger -- read and log utility
@@ -147,7 +146,7 @@
/*
* Decode a symbolic name to a numeric value
*/
-int
+static int
pencode(char *s)
{
char *save;
@@ -171,7 +170,7 @@
return ((lev & LOG_PRIMASK) | (fac & LOG_FACMASK));
}
-int
+static int
decode(const char *name, const CODE *codetab)
{
const CODE *c;
@@ -186,7 +185,7 @@
return (-1);
}
-void
+static void
usage(void)
{