mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-22 08:53:41 +01:00
Remove unused #include. Display if inetd started us in case of failure.
This commit is contained in:
parent
a99e456443
commit
859c540701
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32311
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user