summaryrefslogtreecommitdiff
path: root/present
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2017-09-18 17:34:32 -0700
committerAdam Jackson <ajax@redhat.com>2017-09-20 13:19:27 -0400
commite0f872207aa203adb85e825c311ed50fe3a3af60 (patch)
treed466866edb5b8aa8ec96f06acc27c27499411bd3 /present
parent5cbfa276541e6a621cf9c4b44b75323e90a5bd4c (diff)
sync: Convert from "CARD64" to int64_t.
The extension was using the name CARD64 to represent 64-bit values, with a #define from CARD64 to XSyncValue, a struct with a pair of 32-bit values representing a signed 64-bit value. This interfered with protocol headers using CARD64 to try to actually store a uint64_t. Now that stdint.h exists, let's just use that here, instead. v2: Fix alarm delta changes. v3: Do the potentially overflowing math as uint and convert to int afterward, out of C spec paranoia. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'present')
-rw-r--r--present/present_fence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/present/present_fence.c b/present/present_fence.c
index e09657d31..87e7e17d8 100644
--- a/present/present_fence.c
+++ b/present/present_fence.c
@@ -45,7 +45,7 @@ struct present_fence {
* SyncTrigger callbacks
*/
static Bool
-present_fence_sync_check_trigger(SyncTrigger *trigger, XSyncValue oldval)
+present_fence_sync_check_trigger(SyncTrigger *trigger, int64_t oldval)
{
struct present_fence *present_fence = container_of(trigger, struct present_fence, trigger);