summaryrefslogtreecommitdiffstats
path: root/libexec/rpc.rusersd/rusersd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rpc.rusersd/rusersd.c')
-rw-r--r--libexec/rpc.rusersd/rusersd.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/libexec/rpc.rusersd/rusersd.c b/libexec/rpc.rusersd/rusersd.c
index 8538797..5cc4faf 100644
--- a/libexec/rpc.rusersd/rusersd.c
+++ b/libexec/rpc.rusersd/rusersd.c
@@ -32,11 +32,14 @@
*/
#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 <rpc/pmap_clnt.h>
#include <signal.h>
#include <syslog.h>
#define utmp rutmp
@@ -55,6 +58,7 @@ cleanup()
exit(0);
}
+int
main(argc, argv)
int argc;
char *argv[];
@@ -90,16 +94,16 @@ 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, RUSERSPROG, RUSERSVERS_IDLE, rusers_service, proto)) {
- syslog(LOG_ERR, "unable to register (RUSERSPROG, RUSERSVERS_IDLE, %s).", proto?"udp":"(inetd)");
+ syslog(LOG_ERR, "unable to register (RUSERSPROG, RUSERSVERS_IDLE, %s)", proto?"udp":"(inetd)");
exit(1);
}
if (!svc_register(transp, RUSERSPROG, RUSERSVERS_ORIG, rusers_service, proto)) {
- syslog(LOG_ERR, "unable to register (RUSERSPROG, RUSERSVERS_ORIG, %s).", proto?"udp":"(inetd)");
+ syslog(LOG_ERR, "unable to register (RUSERSPROG, RUSERSVERS_ORIG, %s)", proto?"udp":"(inetd)");
exit(1);
}
OpenPOWER on IntegriCloud