diff options
| author | Philippe Charnier <charnier@FreeBSD.org> | 1998-01-07 07:51:00 +0000 |
|---|---|---|
| committer | Philippe Charnier <charnier@FreeBSD.org> | 1998-01-07 07:51:00 +0000 |
| commit | 859c5407015b7407400b891a1cd6d0b72ca6f24a (patch) | |
| tree | 22af65f7c66956ddbfd9addc93fd259b041207e2 /libexec/rpc.rstatd | |
| parent | a99e4564434fd1e277dbf1faef5154fd7ad6cdd1 (diff) | |
Notes
Diffstat (limited to 'libexec/rpc.rstatd')
| -rw-r--r-- | libexec/rpc.rstatd/rstat_proc.c | 6 | ||||
| -rw-r--r-- | libexec/rpc.rstatd/rstatd.c | 9 |
2 files changed, 5 insertions, 10 deletions
diff --git a/libexec/rpc.rstatd/rstat_proc.c b/libexec/rpc.rstatd/rstat_proc.c index 0f6e2ee656e9..4c586bb48efb 100644 --- a/libexec/rpc.rstatd/rstat_proc.c +++ b/libexec/rpc.rstatd/rstat_proc.c @@ -33,7 +33,7 @@ static char sccsid[] = "from: @(#)rpc.rstatd.c 1.1 86/09/25 Copyr 1984 Sun Micro static char sccsid[] = "from: @(#)rstat_proc.c 2.2 88/08/01 4.0 RPCSRC"; #endif static const char rcsid[] = - "$Id$"; + "$Id: rstat_proc.c,v 1.8 1997/11/26 07:34:55 charnier Exp $"; #endif /* @@ -43,7 +43,6 @@ static const char rcsid[] = */ #include <sys/types.h> -#include <sys/param.h> #include <sys/dkstat.h> #include <sys/socket.h> #include <sys/sysctl.h> @@ -54,7 +53,6 @@ static const char rcsid[] = #include <fcntl.h> #include <kvm.h> #include <limits.h> -#include <nlist.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> @@ -65,8 +63,6 @@ static const char rcsid[] = #include <net/if.h> #include <net/if_mib.h> -#include <rpc/rpc.h> - #undef FSHIFT /* Use protocol's shift and scale values */ #undef FSCALE #undef if_ipackets diff --git a/libexec/rpc.rstatd/rstatd.c b/libexec/rpc.rstatd/rstatd.c index 84f1c4745551..ede8d50bdb84 100644 --- a/libexec/rpc.rstatd/rstatd.c +++ b/libexec/rpc.rstatd/rstatd.c @@ -33,10 +33,9 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: rstatd.c,v 1.6 1997/11/26 07:34:56 charnier Exp $"; #endif /* not lint */ -#include <stdio.h> #include <stdlib.h> #include <rpc/rpc.h> #include <signal.h> @@ -104,15 +103,15 @@ main(argc, argv) exit(1); } if (!svc_register(transp, RSTATPROG, RSTATVERS_TIME, rstat_service, proto)) { - syslog(LOG_ERR, "unable to register (RSTATPROG, RSTATVERS_TIME, udp)"); + syslog(LOG_ERR, "unable to register (RSTATPROG, RSTATVERS_TIME, %s)", proto?"udp":"(inetd)"); exit(1); } if (!svc_register(transp, RSTATPROG, RSTATVERS_SWTCH, rstat_service, proto)) { - syslog(LOG_ERR, "unable to register (RSTATPROG, RSTATVERS_SWTCH, udp)"); + syslog(LOG_ERR, "unable to register (RSTATPROG, RSTATVERS_SWTCH, %s)", proto?"udp":"(inetd)"); exit(1); } if (!svc_register(transp, RSTATPROG, RSTATVERS_ORIG, rstat_service, proto)) { - syslog(LOG_ERR, "unable to register (RSTATPROG, RSTATVERS_ORIG, udp)"); + syslog(LOG_ERR, "unable to register (RSTATPROG, RSTATVERS_ORIG, %s)", proto?"udp":"(inetd)"); exit(1); } |
