summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/ypserv/mknetid/mknetid.c11
-rw-r--r--usr.sbin/ypserv/yptest/yptest.c6
2 files changed, 11 insertions, 6 deletions
diff --git a/usr.sbin/ypserv/mknetid/mknetid.c b/usr.sbin/ypserv/mknetid/mknetid.c
index 1c2352819ea..f20422cdbc6 100644
--- a/usr.sbin/ypserv/mknetid/mknetid.c
+++ b/usr.sbin/ypserv/mknetid/mknetid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mknetid.c,v 1.6 2001/01/11 23:37:22 deraadt Exp $ */
+/* $OpenBSD: mknetid.c,v 1.7 2002/02/13 23:10:46 deraadt Exp $ */
/*
* Copyright (c) 1996 Mats O Jansson <moj@stacken.kth.se>
@@ -32,7 +32,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: mknetid.c,v 1.6 2001/01/11 23:37:22 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mknetid.c,v 1.7 2002/02/13 23:10:46 deraadt Exp $";
#endif
#include <sys/param.h>
@@ -43,8 +43,11 @@ static char rcsid[] = "$OpenBSD: mknetid.c,v 1.6 2001/01/11 23:37:22 deraadt Exp
#include <stdlib.h>
#include <pwd.h>
#include <grp.h>
+#include <err.h>
#include <netdb.h>
+#include <rpcsvc/ypclnt.h>
+
struct user {
char *usr_name; /* user name */
int usr_uid; /* user uid */
@@ -414,7 +417,7 @@ print_hosts(pfile, fname, domain)
{
char line[1024];
int line_no = 0;
- int len, colon;
+ int len;
char *p, *k, *u;
while (read_line(pfile, line, sizeof(line))) {
@@ -469,7 +472,7 @@ char *fname;
{
char line[1024];
int line_no = 0;
- int len, colon;
+ int len;
char *p, *k, *u;
while (read_line(mfile, line, sizeof(line))) {
diff --git a/usr.sbin/ypserv/yptest/yptest.c b/usr.sbin/ypserv/yptest/yptest.c
index 37a648cddc9..e2e865cab5f 100644
--- a/usr.sbin/ypserv/yptest/yptest.c
+++ b/usr.sbin/ypserv/yptest/yptest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yptest.c,v 1.9 2002/01/20 23:37:27 deraadt Exp $ */
+/* $OpenBSD: yptest.c,v 1.10 2002/02/13 23:10:46 deraadt Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
@@ -32,7 +32,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: yptest.c,v 1.9 2002/01/20 23:37:27 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: yptest.c,v 1.10 2002/02/13 23:10:46 deraadt Exp $";
#endif
#include <stdio.h>
@@ -58,6 +58,7 @@ char *key, *val, *data;
return 0;
}
+int
main(argc, argv)
int argc;
char *argv[];
@@ -141,4 +142,5 @@ printf("dom %d\n", Domain[0]);
Status = yp_all(Domain, Map, &Callback);
if (Status)
printf("yp error: %s\n", yperr_string(Status));
+ return 0;
}