summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-07-06 23:26:18 +0000
committerderaadt <deraadt@openbsd.org>2003-07-06 23:26:18 +0000
commit4ff1b97dda54fcee0147dd7a6f268c20d5d39fb8 (patch)
tree9019e60f94c8ad01532df2541e4de3c1a984b7d2
parenterror out instead of silently truncating command-line arguments if they (diff)
downloadwireguard-openbsd-4ff1b97dda54fcee0147dd7a6f268c20d5d39fb8.tar.xz
wireguard-openbsd-4ff1b97dda54fcee0147dd7a6f268c20d5d39fb8.zip
protos
-rw-r--r--usr.bin/ypwhich/ypwhich.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/ypwhich/ypwhich.c b/usr.bin/ypwhich/ypwhich.c
index 96d555c69d8..39168b0e1f6 100644
--- a/usr.bin/ypwhich/ypwhich.c
+++ b/usr.bin/ypwhich/ypwhich.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypwhich.c,v 1.15 2003/06/02 04:00:17 deraadt Exp $ */
+/* $OpenBSD: ypwhich.c,v 1.16 2003/07/06 23:26:18 deraadt Exp $ */
/* $NetBSD: ypwhich.c,v 1.6 1996/05/13 02:43:48 thorpej Exp $ */
/*
@@ -28,7 +28,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$Id: ypwhich.c,v 1.15 2003/06/02 04:00:17 deraadt Exp $";
+static char rcsid[] = "$Id: ypwhich.c,v 1.16 2003/07/06 23:26:18 deraadt Exp $";
#endif
#include <sys/param.h>
@@ -66,7 +66,9 @@ struct ypalias {
{ "ethers", "ethers.byname" },
};
-void
+int bind_host(char *dom, struct sockaddr_in *sin);
+
+static void
usage(void)
{
fprintf(stderr,