Date: Sun, 28 May 2017 21:20:56 +0000 (UTC) From: Toomas Soome <tsoome@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r319084 - head/sys/boot/common Message-ID: <201705282120.v4SLKuoD002859@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705282120.v4SLKuoD002859>