Skip to contentSkip to conversation

mount.nfs: Remove a redundant port assignment

PATCH In review Chuck Lever 1 participant 1 message Aug 3, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/10 mount.nfs: Remove a redundant port assignment

getport() always fills in its port number before calling GETPORT. No need for the caller to do this.

---

 utils/mount/network.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
utils/mount/network.c +0 -1
index efedf25..220bbce 100644
@@ -333,7 +333,6 @@ static int probe_port(clnt_addr_t *server, const unsigned long *versions,
 	p_vers = vers ? &vers : versions;
 	rpc_createerr.cf_stat = 0;
 	for (;;) {
-		saddr->sin_port = htons(PMAPPORT);
 		p_port = getport(saddr, prog, *p_vers, *p_prot);
 		if (p_port) {
 			if (!port || port == p_port) {

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs