Rename local variable "socket" to avoid the one shadowed-declaration
authorKen Raeburn <raeburn@mit.edu>
Sun, 4 Sep 2011 04:29:43 +0000 (04:29 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 4 Sep 2011 04:29:43 +0000 (04:29 +0000)
warning I get in a simple GNU/Linux build.  Solaris may have others.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25136 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/rpc/pmap_clnt.c

index d4f8ba684d95070d0c7ebf9bff64f6ace4e9c692..cda40fb29a9adaee3ab8cd61687eb99ce5808d51 100644 (file)
@@ -148,14 +148,14 @@ pmap_unset(
        rpcvers_t version)
 {
        struct sockaddr_in myaddress;
-       int socket = -1;
+       int sock = -1;
        register CLIENT *client;
        struct pmap parms;
        bool_t rslt;
 
        get_myaddress(&myaddress);
        client = clntudp_bufcreate(&myaddress, PMAPPROG, PMAPVERS,
-           timeout, &socket, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE);
+           timeout, &sock, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE);
        if (client == (CLIENT *)NULL)
                return (FALSE);
        parms.pm_prog = program;
@@ -164,6 +164,6 @@ pmap_unset(
        CLNT_CALL(client, PMAPPROC_UNSET, xdr_pmap, &parms, xdr_bool, &rslt,
            tottimeout);
        CLNT_DESTROY(client);
-       (void)close(socket);
+       (void)close(sock);
        return (rslt);
 }