=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rpcinfo/rpcinfo.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/rpcinfo/rpcinfo.c 2003/06/10 22:20:50 1.9 --- src/usr.bin/rpcinfo/rpcinfo.c 2005/09/22 20:52:55 1.10 *************** *** 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 /* --- 1,9 ---- ! /* $OpenBSD: rpcinfo.c,v 1.10 2005/09/22 20:52:55 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.10 2005/09/22 20:52:55 deraadt Exp $"; #endif /* *************** *** 622,631 **** if (port_num >= 65536) usage("port number out of range"); ! if ((pmap_set(prog_num, version_num, PF_INET, (u_short)port_num)) == 0) { fprintf(stderr, "rpcinfo: Could not set registration " ! "for prog %s version %s port %s\n", argv[0], argv[1], argv[2]); exit(1); } --- 622,638 ---- if (port_num >= 65536) usage("port number out of range"); ! if ((pmap_set(prog_num, version_num, IPPROTO_TCP, (u_short)port_num)) == 0) { fprintf(stderr, "rpcinfo: Could not set registration " ! "for prog %s version %s port %s protocol IPPROTO_TCP\n", ! argv[0], argv[1], argv[2]); ! exit(1); ! } ! if ((pmap_set(prog_num, version_num, IPPROTO_UDP, ! (u_short)port_num)) == 0) { ! fprintf(stderr, "rpcinfo: Could not set registration " ! "for prog %s version %s port %s protocol IPPROTO_UDP\n", argv[0], argv[1], argv[2]); exit(1); }