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
This commit is contained in:
Toomas Soome 2017-05-28 21:20:55 +00:00
parent 41131c64be
commit 8878df0d15
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319084

View File

@ -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);
}