dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0204-Fix-compiler-warning-1154226.patch

f725e3
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f725e3
From: Robert Marshall <rmarshall@redhat.com>
f725e3
Date: Thu, 7 Jul 2016 16:30:32 -0400
f725e3
Subject: [PATCH] Fix compiler warning (#1154226)
f725e3
f725e3
Coverity threw a compiler warning for an incompatible pointer type when
f725e3
referencing a union. Converted the argument to pass the exact member of the
f725e3
union instead of just the union itself.
f725e3
f725e3
Related: rhbz#1154226
f725e3
---
f725e3
 grub-core/net/drivers/efi/efinet.c | 2 +-
f725e3
 1 file changed, 1 insertion(+), 1 deletion(-)
f725e3
f725e3
diff --git a/grub-core/net/drivers/efi/efinet.c b/grub-core/net/drivers/efi/efinet.c
f725e3
index d7befb2ba9b..ed103df7a80 100644
f725e3
--- a/grub-core/net/drivers/efi/efinet.c
f725e3
+++ b/grub-core/net/drivers/efi/efinet.c
f725e3
@@ -415,7 +415,7 @@ grub_efi_net_config_real (grub_efi_handle_t hnd, char **device,
f725e3
 		     sizeof (hwaddr.mac));
f725e3
 
f725e3
 	grub_net_configure_by_dhcpv6_ack (card->name, card, 0,
f725e3
-					  &hwaddr, &pxe_mode->dhcp_ack,
f725e3
+					  &hwaddr, &pxe_mode->dhcp_ack.dhcpv6,
f725e3
 					  1, device, path);
f725e3
 	grub_dprintf ("efinet", "device: `%s' path: `%s'\n", *device, *path);
f725e3
       }