svn commit: r319084 - head/sys/boot/common
Toomas Soome
tsoome at FreeBSD.org
Sun May 28 21:20:57 UTC 2017
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);
}
More information about the svn-src-head
mailing list