summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1998-01-07 07:51:00 +0000
committercharnier <charnier@FreeBSD.org>1998-01-07 07:51:00 +0000
commit4cc8746553f64933dbe86087328c6bfff866ad92 (patch)
treef7538f509cd7cf9a85d3ed63320c598f5bb2c7da /libexec
parent3210047753e19fa10c2a78d438ba2b6a57d281b6 (diff)
downloadFreeBSD-src-4cc8746553f64933dbe86087328c6bfff866ad92.zip
FreeBSD-src-4cc8746553f64933dbe86087328c6bfff866ad92.tar.gz
Remove unused #include. Display if inetd started us in case of failure.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rpc.rstatd/rstat_proc.c6
-rw-r--r--libexec/rpc.rstatd/rstatd.c9
2 files changed, 5 insertions, 10 deletions
diff --git a/libexec/rpc.rstatd/rstat_proc.c b/libexec/rpc.rstatd/rstat_proc.c
index 0f6e2ee..4c586bb 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 84f1c47..ede8d50 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);
}
OpenPOWER on IntegriCloud