summaryrefslogtreecommitdiffstats
path: root/libexec/rpc.rstatd/rstatd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rpc.rstatd/rstatd.c')
-rw-r--r--libexec/rpc.rstatd/rstatd.c14
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);
}
OpenPOWER on IntegriCloud