diff options
author | marcel <marcel@FreeBSD.org> | 2014-10-01 20:37:15 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2014-10-01 20:37:15 +0000 |
commit | a74e992d46af3caf22eae106b9627987fb1d6468 (patch) | |
tree | ffd991d08c92139fdc67e4c7ec6369b65cc71d96 /usr.bin | |
parent | b1da57a21d9f5aa8e6e10c809e10aa0060f3fad5 (diff) | |
download | FreeBSD-src-a74e992d46af3caf22eae106b9627987fb1d6468.zip FreeBSD-src-a74e992d46af3caf22eae106b9627987fb1d6468.tar.gz |
Suffix the cookie constants with ULL to silence warnings from compilers
that try to treat them as 32-bit values.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mkimg/vhd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mkimg/vhd.c b/usr.bin/mkimg/vhd.c index af3d95e..6b9d6a0 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; |