aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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] == ':')