diff options
author | charnier <charnier@FreeBSD.org> | 1998-01-07 07:51:00 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1998-01-07 07:51:00 +0000 |
commit | 4cc8746553f64933dbe86087328c6bfff866ad92 (patch) | |
tree | f7538f509cd7cf9a85d3ed63320c598f5bb2c7da /libexec/rpc.rstatd/rstatd.c | |
parent | 3210047753e19fa10c2a78d438ba2b6a57d281b6 (diff) | |
download | FreeBSD-src-4cc8746553f64933dbe86087328c6bfff866ad92.zip FreeBSD-src-4cc8746553f64933dbe86087328c6bfff866ad92.tar.gz |
Remove unused #include. Display if inetd started us in case of failure.
Diffstat (limited to 'libexec/rpc.rstatd/rstatd.c')
-rw-r--r-- | libexec/rpc.rstatd/rstatd.c | 9 |
1 files changed, 4 insertions, 5 deletions
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); } |