Module Name:    xsrc
Committed By:   riastradh
Date:           Thu Feb 25 04:48:24 UTC 2016

Modified Files:
        xsrc/external/mit/libdrm/dist: xf86atomic.h

Log Message:
Use unsigned int, not int, for LIBDRM_ATOMIC_TYPE.

Otherwise we pass int * to atomic_..._uint operations that expect
unsigned int *.

(Not clear to me why GCC doesn't warn about a pointer signedness
issue here but Clang does.)


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 xsrc/external/mit/libdrm/dist/xf86atomic.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/libdrm/dist/xf86atomic.h
diff -u xsrc/external/mit/libdrm/dist/xf86atomic.h:1.7 xsrc/external/mit/libdrm/dist/xf86atomic.h:1.8
--- xsrc/external/mit/libdrm/dist/xf86atomic.h:1.7	Tue Oct 13 02:59:39 2015
+++ xsrc/external/mit/libdrm/dist/xf86atomic.h	Thu Feb 25 04:48:24 2016
@@ -83,7 +83,7 @@ typedef struct {
 #define HAS_ATOMIC_OPS 1
 
 #if defined(__NetBSD__)
-#define LIBDRM_ATOMIC_TYPE int
+#define LIBDRM_ATOMIC_TYPE unsigned int
 #else
 #define LIBDRM_ATOMIC_TYPE uint_t
 #endif

Reply via email to