svn commit: r272375 - user/marcel/mkimg

Marcel Moolenaar marcel at FreeBSD.org
Wed Oct 1 16:48:55 UTC 2014


Author: marcel
Date: Wed Oct  1 16:48:54 2014
New Revision: 272375
URL: https://svnweb.freebsd.org/changeset/base/272375

Log:
  Make sure the cookies are constants of appropriate width.

Modified:
  user/marcel/mkimg/vhd.c

Modified: user/marcel/mkimg/vhd.c
==============================================================================
--- user/marcel/mkimg/vhd.c	Wed Oct  1 16:47:14 2014	(r272374)
+++ user/marcel/mkimg/vhd.c	Wed Oct  1 16:48:54 2014	(r272375)
@@ -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;


More information about the svn-src-user mailing list