X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_conn.c;h=3b315bca480c2d68b225642bd1f24e1c30ed5411;hb=3de6ab7b786775d9e7df1523c27cdfe3ffd3a25f;hp=239d71b17f9b75d62f6275c4389a35d0bda67870;hpb=40589db8124b8c72894deb86a825c6117b0a2cd2;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_conn.c b/src/xcb_conn.c index 239d71b..3b315bc 100644 --- a/src/xcb_conn.c +++ b/src/xcb_conn.c @@ -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;