aboutsummaryrefslogtreecommitdiff
path: root/libXext/src/XSync.c
diff options
context:
space:
mode:
Diffstat (limited to 'libXext/src/XSync.c')
-rw-r--r--libXext/src/XSync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libXext/src/XSync.c b/libXext/src/XSync.c
index df7c43542..577529388 100644
--- a/libXext/src/XSync.c
+++ b/libXext/src/XSync.c
@@ -107,8 +107,8 @@ static /* const */ SyncVersionInfo supported_versions[] = {
};
#define NUM_VERSIONS (sizeof(supported_versions)/sizeof(supported_versions[0]))
-#define GET_VERSION(info) ((info) ? (const SyncVersionInfo*)(info)->data : NULL)
-#define IS_VERSION_SUPPORTED(info) (!!GET_VERSION(info))
+#define GET_VERSION(info) ((const SyncVersionInfo*)(info)->data)
+#define IS_VERSION_SUPPORTED(info) (!!(info))
static
const SyncVersionInfo* GetVersionInfo(Display *dpy)