summaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv/yptest
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-02-13 23:10:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-02-13 23:10:47 +0000
commite763dcb5beb1b723d22070b161fdf62a7e5af54a (patch)
tree8c8b64339041021f5950400613cb5c12f2f02e6f /usr.sbin/ypserv/yptest
parent507308c75500c3c52faff25e88191aa30d14e9c8 (diff)
some more KNF and -Wall
Diffstat (limited to 'usr.sbin/ypserv/yptest')
-rw-r--r--usr.sbin/ypserv/yptest/yptest.c6
1 files changed, 4 insertions, 2 deletions
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;
}