Author: tsoome
Date: Sun May 28 21:20:55 2017
New Revision: 319084
URL: https://svnweb.freebsd.org/changeset/base/319084

Log:
  Small cleanup in dev_net.c
  
  The variable servip is unused. One leftover printf and small cstyle nit.
  
  Reviewed by:  bapt
  Differential Revision:        https://reviews.freebsd.org/D10980

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

Modified: head/sys/boot/common/dev_net.c
==============================================================================
--- head/sys/boot/common/dev_net.c      Sun May 28 18:31:13 2017        
(r319083)
+++ head/sys/boot/common/dev_net.c      Sun May 28 21:20:55 2017        
(r319084)
@@ -256,7 +256,6 @@ net_getparams(int sock)
 {
        char buf[MAXHOSTNAMELEN];
        n_long rootaddr, smask;
-       extern struct in_addr servip;
 
 #ifdef SUPPORT_BOOTP
        /*
@@ -421,8 +420,8 @@ net_parse_rootpath()
                        val = strchr(ptr, '/');
                        if (val != NULL) {
                                snprintf(ip, sizeof(ip), "%.*s",
-                                   (int)((uintptr_t)val - (uintptr_t)ptr), 
ptr);
-                               printf("%s\n", ip);
+                                   (int)((uintptr_t)val - (uintptr_t)ptr),
+                                   ptr);
                                addr = inet_addr(ip);
                                bcopy(val, rootpath, strlen(val) + 1);
                        }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to