Replace uses of "long" with uint32_t, and similar; fixes 64-bit bugs
[free-sw/xcb/libxcb] / src / xcb_conn.c
index 239d71b..3b315bc 100644 (file)
@@ -48,7 +48,7 @@ static const int error_connection = 1;
 
 static int set_fd_flags(const int fd)
 {
-    long flags = fcntl(fd, F_GETFL, 0);
+    int flags = fcntl(fd, F_GETFL, 0);
     if(flags == -1)
         return 0;
     flags |= O_NONBLOCK;