Return to rpcinfo.c CVS log | Up to [local] / src / usr.bin / rpcinfo |
version 1.14, 2010/09/01 14:43:34 | version 1.15, 2019/06/28 13:35:03 | ||
---|---|---|---|
|
|
||
get_inet_address(&addr, argv[0]); | get_inet_address(&addr, argv[0]); | ||
/* Open the socket here so it will survive calls to clnt_destroy */ | /* Open the socket here so it will survive calls to clnt_destroy */ | ||
sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); | sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); | ||
if (sock < 0) { | if (sock == -1) { | ||
perror("rpcinfo: socket"); | perror("rpcinfo: socket"); | ||
exit(1); | exit(1); | ||
} | } |