diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-03-05 12:47:46 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-03-05 12:47:46 -0500 |
commit | c7cf6f004951615cf775431d4f47663a20f2db6e (patch) | |
tree | ca892f58ba9e0abfe54a3ff8f1becc1746e234aa /test/bench.c | |
parent | 38b7b571c81d1545bb4b6a1c5e4fd9e1bf0f542d (diff) | |
download | libevent-c7cf6f004951615cf775431d4f47663a20f2db6e.tar.gz |
Replace users of "int fd" with "evutil_socket_t fd" in portable code
Remeber, win32 has a socket type that's actually a handle, so if
there's a chance that code is run on win32, we can't use "int" as the
socket type.
This isn't a blind search-and-replace: sometimes an fd is really in
fact for a file, and not a socket at all.
Diffstat (limited to 'test/bench.c')
-rw-r--r-- | test/bench.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/bench.c b/test/bench.c index e77fc65c..d1629daa 100644 --- a/test/bench.c +++ b/test/bench.c @@ -62,7 +62,7 @@ static struct event *events; static void -read_cb(int fd, short which, void *arg) +read_cb(evutil_socket_t fd, short which, void *arg) { long idx = (long) arg, widx = idx + 1; u_char ch; |