=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rpcinfo/rpcinfo.c,v retrieving revision 1.8 retrieving revision 1.9 diff -c -r1.8 -r1.9 *** src/usr.bin/rpcinfo/rpcinfo.c 2001/11/19 19:02:16 1.8 --- src/usr.bin/rpcinfo/rpcinfo.c 2003/06/10 22:20:50 1.9 *************** *** 1,9 **** ! /* $OpenBSD: rpcinfo.c,v 1.8 2001/11/19 19:02:16 mpech 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.8 2001/11/19 19:02:16 mpech Exp $"; #endif /* --- 1,9 ---- ! /* $OpenBSD: rpcinfo.c,v 1.9 2003/06/10 22:20:50 deraadt 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.9 2003/06/10 22:20:50 deraadt Exp $"; #endif /* *************** *** 88,96 **** #define SETS 6 /* set registration for the service */ int ! main(argc, argv) ! int argc; ! char **argv; { int c; extern char *optarg; --- 88,94 ---- #define SETS 6 /* set registration for the service */ int ! main(int argc, char *argv[]) { int c; extern char *optarg; *************** *** 201,210 **** } void ! udpping(portnum, argc, argv) ! u_short portnum; ! int argc; ! char **argv; { struct timeval to; struct sockaddr_in addr; --- 199,205 ---- } void ! udpping(u_short portnum, int argc, char **argv) { struct timeval to; struct sockaddr_in addr; *************** *** 340,349 **** } void ! tcpping(portnum, argc, argv) ! u_short portnum; ! int argc; ! char **argv; { struct timeval to; struct sockaddr_in addr; --- 335,341 ---- } void ! tcpping(u_short portnum, int argc, char **argv) { struct timeval to; struct sockaddr_in addr; *************** *** 473,482 **** * a good error message. */ int ! pstatus(client, prognum, vers) ! CLIENT *client; ! u_long prognum; ! u_long vers; { struct rpc_err rpcerr; --- 465,471 ---- * a good error message. */ int ! pstatus(CLIENT *client, u_long prognum, u_long vers) { struct rpc_err rpcerr; *************** *** 494,502 **** } void ! pmapdump(argc, argv) ! int argc; ! char **argv; { struct sockaddr_in server_addr; struct hostent *hp; --- 483,489 ---- } void ! pmapdump(int argc, char **argv) { struct sockaddr_in server_addr; struct hostent *hp; *************** *** 565,573 **** */ /*ARGSUSED*/ bool_t ! reply_proc(res, who) ! caddr_t res; /* Nothing comes back */ ! struct sockaddr_in *who; /* Who sent us the reply */ { struct hostent *hp; --- 552,558 ---- */ /*ARGSUSED*/ bool_t ! reply_proc(caddr_t res, struct sockaddr_in *who) { struct hostent *hp; *************** *** 579,587 **** } void ! brdcst(argc, argv) ! int argc; ! char **argv; { enum clnt_stat rpc_stat; u_long prognum, vers_num; --- 564,570 ---- } void ! brdcst(int argc, char **argv) { enum clnt_stat rpc_stat; u_long prognum, vers_num; *************** *** 604,612 **** } void ! deletereg(argc, argv) ! int argc; ! char **argv; { u_long prog_num, version_num; --- 587,593 ---- } void ! deletereg(int argc, char **argv) { u_long prog_num, version_num; *************** *** 626,634 **** } void ! setreg(argc, argv) ! int argc; ! char **argv; { u_long prog_num, version_num, port_num; --- 607,613 ---- } void ! setreg(int argc, char **argv) { u_long prog_num, version_num, port_num; *************** *** 670,678 **** } int ! getprognum(arg, ulp) ! char *arg; ! u_long *ulp; { struct rpcent *rpc; --- 649,655 ---- } int ! getprognum(char *arg, u_long *ulp) { struct rpcent *rpc; *************** *** 690,698 **** } int ! getul(arg, ulp) ! char *arg; ! u_long *ulp; { u_long ul; int save_errno = errno; --- 667,673 ---- } int ! getul(char *arg, u_long *ulp) { u_long ul; int save_errno = errno; *************** *** 713,721 **** } void ! get_inet_address(addr, host) ! struct sockaddr_in *addr; ! char *host; { struct hostent *hp; --- 688,694 ---- } void ! get_inet_address(struct sockaddr_in *addr, char *host) { struct hostent *hp;