]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
authorVladimir Serbinenko <phcoder@gmail.com>
Thu, 7 Nov 2013 00:11:36 +0000 (01:11 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Thu, 7 Nov 2013 00:11:36 +0000 (01:11 +0100)
ChangeLog
grub-core/net/bootp.c

index 00c154ed798b9ed0dc0f49b2e83f466b617a3121..5be787e99085787ec4bcf60dae0bfaccc4c7a1e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 76fee9183114db277ced070727153b4b35dbab9f..ed159418a1f3cb9eddc5bac604edc2f3229ba5c9 100644 (file)
@@ -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,