diff options
author | charnier <charnier@FreeBSD.org> | 1997-11-26 07:34:56 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-11-26 07:34:56 +0000 |
commit | a1752dee71c9d0ef623d348bcbdb0dc83e3bbf65 (patch) | |
tree | f133aef40a6aafb93edc35de9ca2c2664d1d331a /libexec/rpc.rstatd/rstatd.c | |
parent | 0a4b753b280853b41f27d7b886c691c71ede39b2 (diff) | |
download | FreeBSD-src-a1752dee71c9d0ef623d348bcbdb0dc83e3bbf65.zip FreeBSD-src-a1752dee71c9d0ef623d348bcbdb0dc83e3bbf65.tar.gz |
Remove \n at end of syslog string. -Wall cleaning. Cosmetics in man page.
Diffstat (limited to 'libexec/rpc.rstatd/rstatd.c')
-rw-r--r-- | libexec/rpc.rstatd/rstatd.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libexec/rpc.rstatd/rstatd.c b/libexec/rpc.rstatd/rstatd.c index 72c449f..84f1c47 100644 --- a/libexec/rpc.rstatd/rstatd.c +++ b/libexec/rpc.rstatd/rstatd.c @@ -32,13 +32,16 @@ */ #ifndef lint -static char rcsid[] = "$Id$"; +static const char rcsid[] = + "$Id$"; #endif /* not lint */ #include <stdio.h> +#include <stdlib.h> #include <rpc/rpc.h> #include <signal.h> #include <syslog.h> +#include <rpc/pmap_clnt.h> #include <rpcsvc/rstat.h> extern void rstat_service(); @@ -55,6 +58,7 @@ cleanup() exit(0); } +int main(argc, argv) int argc; char *argv[]; @@ -96,19 +100,19 @@ main(argc, argv) transp = svcudp_create(sock); if (transp == NULL) { - syslog(LOG_ERR, "cannot create udp service."); + syslog(LOG_ERR, "cannot create udp service"); 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, udp)"); 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, udp)"); 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, udp)"); exit(1); } |