summaryrefslogtreecommitdiff
path: root/com32/mboot
diff options
context:
space:
mode:
Diffstat (limited to 'com32/mboot')
-rw-r--r--com32/mboot/solaris.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/com32/mboot/solaris.c b/com32/mboot/solaris.c
index 1baf9c53..3b316606 100644
--- a/com32/mboot/solaris.c
+++ b/com32/mboot/solaris.c
@@ -38,15 +38,16 @@
void mboot_solaris_dhcp_hack(void)
{
- void *dhcpdata;
- size_t dhcplen;
+ void *dhcpdata;
+ size_t dhcplen;
- if (!pxe_get_cached_info(PXENV_PACKET_TYPE_DHCP_ACK, &dhcpdata, &dhcplen)) {
- mbinfo.drives_addr = map_data(dhcpdata, dhcplen, 4, 0);
- if (mbinfo.drives_addr) {
- mbinfo.drives_length = dhcplen;
- mbinfo.boot_device = 0x20ffffff;
- mbinfo.flags = (mbinfo.flags & ~MB_INFO_DRIVE_INFO) | MB_INFO_BOOTDEV;
+ if (!pxe_get_cached_info(PXENV_PACKET_TYPE_DHCP_ACK, &dhcpdata, &dhcplen)) {
+ mbinfo.drives_addr = map_data(dhcpdata, dhcplen, 4, 0);
+ if (mbinfo.drives_addr) {
+ mbinfo.drives_length = dhcplen;
+ mbinfo.boot_device = 0x20ffffff;
+ mbinfo.flags =
+ (mbinfo.flags & ~MB_INFO_DRIVE_INFO) | MB_INFO_BOOTDEV;
+ }
}
- }
}