diff --git a/evutil.c b/evutil.c index 93c30225..cc6d0f46 100644 --- a/evutil.c +++ b/evutil.c @@ -169,7 +169,7 @@ evutil_make_socket_nonblocking(int fd) } #else { - long flags; + int flags; if ((flags = fcntl(fd, F_GETFL, NULL)) < 0) { event_warn("fcntl(%d, F_GETFL)", fd); return -1;