summaryrefslogtreecommitdiff
path: root/libexec/rpc.rusersd/rusersd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-19 09:28:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-19 09:28:04 +0000
commitfa79e0ec2b5942ce10cc321aff0d802936e35325 (patch)
tree044df0bee33f0d87d6d883a35474657803bb486d /libexec/rpc.rusersd/rusersd.c
parent3580586e4b658d3a8e3eedb41772450cd5ca63d8 (diff)
Wall
Diffstat (limited to 'libexec/rpc.rusersd/rusersd.c')
-rw-r--r--libexec/rpc.rusersd/rusersd.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libexec/rpc.rusersd/rusersd.c b/libexec/rpc.rusersd/rusersd.c
index 6c97b71abc9..34f98b00272 100644
--- a/libexec/rpc.rusersd/rusersd.c
+++ b/libexec/rpc.rusersd/rusersd.c
@@ -27,15 +27,20 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: rusersd.c,v 1.2 1996/09/22 08:41:33 tholo Exp $";
+static char rcsid[] = "$Id: rusersd.c,v 1.3 1997/09/19 09:28:03 deraadt Exp $";
#endif /* not lint */
+#include <sys/types.h>
+#include <sys/socket.h>
#include <stdio.h>
-#include <rpc/rpc.h>
#include <signal.h>
+#include <unistd.h>
+#include <stdlib.h>
#include <syslog.h>
+#include <rpc/rpc.h>
#include <rpcsvc/rusers.h> /* New version */
#include <rpcsvc/rnusers.h> /* Old version */
+#include <rpc/pmap_clnt.h>
extern void rusers_service();
@@ -50,6 +55,7 @@ cleanup()
exit(0);
}
+int
main(argc, argv)
int argc;
char *argv[];