From 859c5407015b7407400b891a1cd6d0b72ca6f24a Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Wed, 7 Jan 1998 07:51:00 +0000 Subject: [PATCH] Remove unused #include. Display if inetd started us in case of failure. --- libexec/rpc.rstatd/rstat_proc.c | 6 +----- 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 -#include #include #include #include @@ -54,7 +53,6 @@ static const char rcsid[] = #include #include #include -#include #include #include #include @@ -65,8 +63,6 @@ static const char rcsid[] = #include #include -#include - #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 #include #include #include @@ -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); }