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:
parent
41131c64be
commit
8878df0d15
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user