aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPaul Saab <ps@FreeBSD.org>2000-04-29 23:08:49 +0000
committerPaul Saab <ps@FreeBSD.org>2000-04-29 23:08:49 +0000
commit95394e643f896c434f802b63f0bcb6bd11074853 (patch)
tree715e4ac44785702d7908e5a29207f1a676291dc1 /sys
parent8e30378f890cb190b09b6d54bf5ffbc2bd4e2a01 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/i386/libi386/pxe.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/boot/i386/libi386/pxe.c b/sys/boot/i386/libi386/pxe.c
index 7c5b65541c03..44bb7533a80c 100644
--- a/sys/boot/i386/libi386/pxe.c
+++ b/sys/boot/i386/libi386/pxe.c
@@ -31,22 +31,16 @@
*/
#include <stand.h>
+#include <string.h>
+#include <stdarg.h>
#include <netinet/in_systm.h>
#include <netinet/in.h>
#include <netinet/udp.h>
-#include <netinet/ip.h>
-
-#include <sys/reboot.h>
-#include <string.h>
-#include <sys/reboot.h>
-#include <arpa/tftp.h>
#include <net.h>
#include <netif.h>
-#include <stdarg.h>
-
#include <bootstrap.h>
#include "btxv86.h"
#include "pxe.h"
@@ -285,10 +279,10 @@ pxe_open(struct open_file *f, ...)
* which brought us to life and a default rootpath.
*/
bootp(pxe_sock);
- if (rootip.s_addr == 0) {
+ if (rootip.s_addr == 0)
rootip.s_addr = bootplayer.sip;
+ if (!rootpath[1])
strcpy(rootpath, PXENFSROOTPATH);
- }
for(i=0; i<FNAME_SIZE; i++)
if(rootpath[i] == ':')