summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rwhod
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2003-07-06 10:37:00 +0000
committercharnier <charnier@FreeBSD.org>2003-07-06 10:37:00 +0000
commit0ad2e8b8058acc93dee5015a14089e6dc55f22e7 (patch)
tree1c8e758d02bd10976d8889b968f9146149783b1e /usr.sbin/rwhod
parent2ced154094b1ba76e51108eff45803f60f6731ce (diff)
downloadFreeBSD-src-0ad2e8b8058acc93dee5015a14089e6dc55f22e7.zip
FreeBSD-src-0ad2e8b8058acc93dee5015a14089e6dc55f22e7.tar.gz
de-__P
use port/proto to represent services (not proto/port). add FBSDID
Diffstat (limited to 'usr.sbin/rwhod')
-rw-r--r--usr.sbin/rwhod/rwhod.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/rwhod/rwhod.c b/usr.sbin/rwhod/rwhod.c
index 3c68993..96514be 100644
--- a/usr.sbin/rwhod/rwhod.c
+++ b/usr.sbin/rwhod/rwhod.c
@@ -37,13 +37,14 @@ static const char copyright[] =
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
-#ifndef lint
#if 0
+#ifndef lint
static char sccsid[] = "@(#)rwhod.c 8.1 (Berkeley) 6/6/93";
-#endif
-static const char rcsid[] =
- "$FreeBSD$";
#endif /* not lint */
+#endif
+
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/socket.h>
@@ -163,8 +164,7 @@ int verify(char *, int);
static void usage(void);
#ifdef DEBUG
char *interval(int, char *);
-void Sendto __P((int, const void *, size_t, int,
- const struct sockaddr *, int));
+void Sendto(int, const void *, size_t, int, const struct sockaddr *, int);
#define sendto Sendto
#endif
@@ -217,7 +217,7 @@ main(int argc, char *argv[])
openlog("rwhod", LOG_PID, LOG_DAEMON);
sp = getservbyname("who", "udp");
if (sp == NULL) {
- syslog(LOG_ERR, "udp/who: unknown service");
+ syslog(LOG_ERR, "who/udp: unknown service");
exit(1);
}
if (chdir(_PATH_RWHODIR) < 0) {
OpenPOWER on IntegriCloud