diff options
author | Peter Valchev <pvalchev@cvs.openbsd.org> | 2001-07-17 02:24:01 +0000 |
---|---|---|
committer | Peter Valchev <pvalchev@cvs.openbsd.org> | 2001-07-17 02:24:01 +0000 |
commit | f4e7ed46357090ce61bed511ee4cb53fcfa67522 (patch) | |
tree | 2c26f79ad6c1190ba713dbb517a160af1e7c8a04 /usr.bin/rpcinfo/rpcinfo.c | |
parent | fede51bc6df1cd1fce250efe151ecc1cb867f1d9 (diff) |
-Wall cleanup; ok deraadt
Diffstat (limited to 'usr.bin/rpcinfo/rpcinfo.c')
-rw-r--r-- | usr.bin/rpcinfo/rpcinfo.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/rpcinfo/rpcinfo.c b/usr.bin/rpcinfo/rpcinfo.c index dfe3536314f..c218c9bd1ee 100644 --- a/usr.bin/rpcinfo/rpcinfo.c +++ b/usr.bin/rpcinfo/rpcinfo.c @@ -1,9 +1,9 @@ -/* $OpenBSD: rpcinfo.c,v 1.6 2001/07/07 00:31:55 millert Exp $ */ +/* $OpenBSD: rpcinfo.c,v 1.7 2001/07/17 02:24:00 pvalchev Exp $ */ #ifndef lint /*static char sccsid[] = "from: @(#)rpcinfo.c 1.22 87/08/12 SMI";*/ /*static char sccsid[] = "from: @(#)rpcinfo.c 2.2 88/08/11 4.0 RPCSRC";*/ -static char rcsid[] = "$OpenBSD: rpcinfo.c,v 1.6 2001/07/07 00:31:55 millert Exp $"; +static char rcsid[] = "$OpenBSD: rpcinfo.c,v 1.7 2001/07/17 02:24:00 pvalchev Exp $"; #endif /* @@ -51,6 +51,9 @@ static char rcsid[] = "$OpenBSD: rpcinfo.c,v 1.6 2001/07/07 00:31:55 millert Exp #include <rpc/pmap_prot.h> #include <rpc/pmap_clnt.h> #include <signal.h> +#include <string.h> +#include <stdlib.h> +#include <unistd.h> #include <ctype.h> #include <errno.h> #include <arpa/inet.h> @@ -672,7 +675,6 @@ getprognum(arg, ulp) u_long *ulp; { register struct rpcent *rpc; - register u_long prognum; if (isalpha(*arg)) { rpc = getrpcbyname(arg); |