summaryrefslogtreecommitdiff
path: root/libdm
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2016-07-05 20:21:49 +0100
committerBryn M. Reeves <bmr@redhat.com>2016-07-05 20:21:49 +0100
commitf1dd0258f1cb27e62d1133ba41c75bca04a7b174 (patch)
treec0083fc708b73ca5c6cf0132ad74823e61bf90e8 /libdm
parent93034d0b695a72deebe51b3eb7075366728ba0f7 (diff)
downloadlvm2-f1dd0258f1cb27e62d1133ba41c75bca04a7b174.tar.gz
libdm: ensure flags constants have ULL suffix
The walk flags used by libdm-stats use the upper portion of a 64b value: use the ULL suffix to ensure the compiler knows the expected size.
Diffstat (limited to 'libdm')
-rw-r--r--libdm/libdevmapper.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h
index e769be2b3..415928ccf 100644
--- a/libdm/libdevmapper.h
+++ b/libdm/libdevmapper.h
@@ -1010,11 +1010,11 @@ typedef enum {
* the resulting walk will visit instance of each type specified by
* the flag combination.
*/
-#define DM_STATS_WALK_AREA 0x1000000000000
-#define DM_STATS_WALK_REGION 0x2000000000000
-#define DM_STATS_WALK_GROUP 0x4000000000000
+#define DM_STATS_WALK_AREA 0x1000000000000ULL
+#define DM_STATS_WALK_REGION 0x2000000000000ULL
+#define DM_STATS_WALK_GROUP 0x4000000000000ULL
-#define DM_STATS_WALK_ALL 0x7000000000000
+#define DM_STATS_WALK_ALL 0x7000000000000ULL
#define DM_STATS_WALK_DEFAULT (DM_STATS_WALK_AREA | DM_STATS_WALK_REGION)
/*
@@ -1024,7 +1024,7 @@ typedef enum {
* suppress these duplicate entries during a dm_stats_walk_* with the
* DM_STATS_WALK_REGION flag set.
*/
-#define DM_STATS_WALK_SKIP_SINGLE_AREA 0x8000000000000
+#define DM_STATS_WALK_SKIP_SINGLE_AREA 0x8000000000000ULL
/*
* Initialise the cursor control of a dm_stats handle for the specified