diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-21 19:21:18 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-21 19:21:18 +0000 |
commit | d88c4f05415f7cd5e4a31a59b71b547f3e459d42 (patch) | |
tree | 3de514e9a5b2bb2cc30b5fea250c988e97c4fb13 /usr.bin/ypcat/ypcat.c | |
parent | e8a9cd1fb42f698bb22fccbb379853b7d067d2fc (diff) |
Wall
Diffstat (limited to 'usr.bin/ypcat/ypcat.c')
-rw-r--r-- | usr.bin/ypcat/ypcat.c | 8 |
1 files changed, 6 insertions, 2 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; |