* grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
This commit is contained in:
parent
f06c2172c0
commit
6d5a4ceefe
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
|
||||
|
||||
2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
|
||||
|
|
|
@ -159,7 +159,7 @@ parse_dhcp_vendor (const char *name, const void *vend, int limit, int *mask)
|
|||
}
|
||||
}
|
||||
|
||||
#define OFFSET_OF(x, y) ((grub_uint8_t *)((y)->x) - (grub_uint8_t *)(y))
|
||||
#define OFFSET_OF(x, y) ((grub_size_t)((grub_uint8_t *)((y)->x) - (grub_uint8_t *)(y)))
|
||||
|
||||
struct grub_net_network_level_interface *
|
||||
grub_net_configure_by_dhcp_ack (const char *name,
|
||||
|
|
Loading…
Reference in a new issue