From ba7bccb3665343d2805ad5ae63a7efce4df0e6d9 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Wed, 1 Oct 2014 20:37:15 +0000 Subject: [PATCH] Suffix the cookie constants with ULL to silence warnings from compilers that try to treat them as 32-bit values. --- usr.bin/mkimg/vhd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/mkimg/vhd.c b/usr.bin/mkimg/vhd.c index af3d95eaccd7..6b9d6a087d61 100644 --- a/usr.bin/mkimg/vhd.c +++ b/usr.bin/mkimg/vhd.c @@ -64,7 +64,7 @@ __FBSDID("$FreeBSD$"); struct vhd_footer { uint64_t cookie; -#define VHD_FOOTER_COOKIE 0x636f6e6563746978 +#define VHD_FOOTER_COOKIE 0x636f6e6563746978ULL uint32_t features; #define VHD_FEATURES_TEMPORARY 0x01 #define VHD_FEATURES_RESERVED 0x02 @@ -236,7 +236,7 @@ vhd_resize(lba_t imgsz) struct vhd_dyn_header { uint64_t cookie; -#define VHD_HEADER_COOKIE 0x6378737061727365 +#define VHD_HEADER_COOKIE 0x6378737061727365ULL uint64_t data_offset; uint64_t table_offset; uint32_t version;