svn commit: r305769 - head/sys/boot/common

Baptiste Daroussin bapt at FreeBSD.org
Tue Sep 13 15:37:24 UTC 2016


Author: bapt
Date: Tue Sep 13 15:37:23 2016
New Revision: 305769
URL: https://svnweb.freebsd.org/changeset/base/305769

Log:
  Remove code that crept in r305125 by accident
  
  Reported by:	tsoome

Modified:
  head/sys/boot/common/dev_net.c

Modified: head/sys/boot/common/dev_net.c
==============================================================================
--- head/sys/boot/common/dev_net.c	Tue Sep 13 14:14:39 2016	(r305768)
+++ head/sys/boot/common/dev_net.c	Tue Sep 13 15:37:23 2016	(r305769)
@@ -368,7 +368,7 @@ net_print(int verbose)
 uint32_t
 net_parse_rootpath()
 {
-	int i, ipstart;
+	int i;
 	n_long addr = INADDR_NONE;
 
 	netproto = NET_NFS;
@@ -383,7 +383,7 @@ net_parse_rootpath()
 			break;
 	if (i && i != FNAME_SIZE && rootpath[i] == ':') {
 		rootpath[i++] = '\0';
-		addr = inet_addr(&rootpath[ipstart]);
+		addr = inet_addr(&rootpath[0]);
 		bcopy(&rootpath[i], rootpath, strlen(&rootpath[i])+1);
 	}
 


More information about the svn-src-all mailing list