Skip to contentSkip to conversation

mount.nfs: Remove get_my_ipv4addr() from append_addr_opt()

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

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

PATCH 3/9 mount.nfs: Remove get_my_ipv4addr() from append_addr_opt()

The result of the get_my_ipv4addr() function is not used in append_addr_opt(), so remove the call and the ip_addr variable.

---

 utils/mount/stropts.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
utils/mount/stropts.c +1 -3
index e43bbf4..cc13325 100644
@@ -168,7 +168,7 @@ static void extract_interesting_options(char *opts)
  */
 static int append_addr_opt(const char *spec, char **extra_opts)
 {
-	static char hostdir[1024], new_opts[1024], ip_addr[255];
+	static char hostdir[1024], new_opts[1024];
 	char *hostname, *dirname, *s, *old_opts;
 	struct sockaddr_in addr;
 
@@ -186,8 +186,6 @@ static int append_addr_opt(const char *spec, char **extra_opts)
 
 	if (!fill_ipv4_sockaddr(hostname, &addr))
 		return 0;
-	if (!get_my_ipv4addr(ip_addr, sizeof(ip_addr)))
-		return 0;
 
 	/* add IP address to mtab options for use when unmounting */
 	s = inet_ntoa(addr.sin_addr);

-------------------------------------------------------------------------
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