Suffix the cookie constants with ULL to silence warnings from compilers

that try to treat them as 32-bit values.
This commit is contained in:
Marcel Moolenaar 2014-10-01 20:37:15 +00:00
parent bd1df63614
commit ba7bccb366
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272382

View File

@ -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;