diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ypcat/ypcat.c | 8 | ||||
-rw-r--r-- | usr.bin/ypmatch/ypmatch.c | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/usr.bin/ypcat/ypcat.c b/usr.bin/ypcat/ypcat.c index b10ce8390f3..84e9690fed9 100644 --- a/usr.bin/ypcat/ypcat.c +++ b/usr.bin/ypcat/ypcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ypcat.c,v 1.5 1996/05/24 09:15:39 deraadt Exp $ */ +/* $OpenBSD: ypcat.c,v 1.6 1997/07/21 19:21:14 deraadt Exp $ */ /* * Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com> @@ -33,12 +33,14 @@ */ #ifndef LINT -static char rcsid[] = "$OpenBSD: ypcat.c,v 1.5 1996/05/24 09:15:39 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ypcat.c,v 1.6 1997/07/21 19:21:14 deraadt Exp $"; #endif #include <sys/param.h> #include <sys/types.h> #include <sys/socket.h> +#include <unistd.h> +#include <string.h> #include <stdio.h> #include <ctype.h> @@ -62,6 +64,7 @@ struct ypalias { int key; +void usage() { fprintf(stderr, "Usage:\n"); @@ -70,6 +73,7 @@ usage() exit(1); } +int printit(instatus, inkey, inkeylen, inval, invallen, indata) int instatus; char *inkey; diff --git a/usr.bin/ypmatch/ypmatch.c b/usr.bin/ypmatch/ypmatch.c index 1c0542de776..6b729a98618 100644 --- a/usr.bin/ypmatch/ypmatch.c +++ b/usr.bin/ypmatch/ypmatch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ypmatch.c,v 1.5 1996/05/21 21:32:42 deraadt Exp $ */ +/* $OpenBSD: ypmatch.c,v 1.6 1997/07/21 19:21:17 deraadt Exp $ */ /* $NetBSD: ypmatch.c,v 1.8 1996/05/07 01:24:52 jtc Exp $ */ /* @@ -34,7 +34,7 @@ */ #ifndef LINT -static char rcsid[] = "$OpenBSD: ypmatch.c,v 1.5 1996/05/21 21:32:42 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ypmatch.c,v 1.6 1997/07/21 19:21:17 deraadt Exp $"; #endif #include <sys/param.h> @@ -42,6 +42,7 @@ static char rcsid[] = "$OpenBSD: ypmatch.c,v 1.5 1996/05/21 21:32:42 deraadt Exp #include <sys/socket.h> #include <stdio.h> #include <string.h> +#include <unistd.h> #include <ctype.h> #include <rpc/rpc.h> |