[BACK]Return to rpcinfo.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rpcinfo

Diff for /src/usr.bin/rpcinfo/rpcinfo.c between version 1.14 and 1.15

version 1.14, 2010/09/01 14:43:34 version 1.15, 2019/06/28 13:35:03
Line 213 
Line 213 
         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);
         }          }

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15