svn rev #25136: trunk/src/lib/rpc/

raeburn@MIT.EDU raeburn at MIT.EDU
Sun Sep 4 00:29:43 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25136
Commit By: raeburn
Log Message:
Rename local variable "socket" to avoid the one shadowed-declaration
warning I get in a simple GNU/Linux build.  Solaris may have others.


Changed Files:
U   trunk/src/lib/rpc/pmap_clnt.c
Modified: trunk/src/lib/rpc/pmap_clnt.c
===================================================================
--- trunk/src/lib/rpc/pmap_clnt.c	2011-09-04 04:29:40 UTC (rev 25135)
+++ trunk/src/lib/rpc/pmap_clnt.c	2011-09-04 04:29:43 UTC (rev 25136)
@@ -148,14 +148,14 @@
 	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 @@
 	CLNT_CALL(client, PMAPPROC_UNSET, xdr_pmap, &parms, xdr_bool, &rslt,
 	    tottimeout);
 	CLNT_DESTROY(client);
-	(void)close(socket);
+	(void)close(sock);
 	return (rslt);
 }




More information about the cvs-krb5 mailing list