]> granicus.if.org Git - libevent/commit
Pass flags to fcntl(F_SETFL) and fcntl(F_SETFD) as int, not long
authorNick Mathewson <nickm@torproject.org>
Tue, 13 Jul 2010 15:06:08 +0000 (11:06 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 13 Jul 2010 15:09:47 +0000 (11:09 -0400)
commit7c2dea1615fa1488c9cadc9f5aeb885c1ba26a60
tree0cf5c73fc0f1fcef2047ffb7e237cbfb20c2aa4d
parente73cbde15f7fe71649c2d9783a03a805edc10027
Pass flags to fcntl(F_SETFL) and fcntl(F_SETFD) as int, not long

Everybody but Linux documents this as taking an int, and Linux is
very tolerant of getting an int instead.  If it weren't, everybody
doing fcntl(fd,F_SETFL,O_NONBLOCK) would break, since the glibc
headers define O_NONBLOCK as an int literal.
evutil.c