aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/mkimg/vhd.c
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2014-10-01 20:37:15 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2014-10-01 20:37:15 +0000
commitba7bccb3665343d2805ad5ae63a7efce4df0e6d9 (patch)
treeffd991d08c92139fdc67e4c7ec6369b65cc71d96 /usr.bin/mkimg/vhd.c
parentbd1df636140274d2da81357ba561be0d64a0e314 (diff)
downloadsrc-ba7bccb3665343d2805ad5ae63a7efce4df0e6d9.tar.gz
src-ba7bccb3665343d2805ad5ae63a7efce4df0e6d9.zip
Suffix the cookie constants with ULL to silence warnings from compilers
that try to treat them as 32-bit values.
Notes
Notes: svn path=/head/; revision=272382
Diffstat (limited to 'usr.bin/mkimg/vhd.c')
-rw-r--r--usr.bin/mkimg/vhd.c4
1 files 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;