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 /changelist-internal.h | |
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 'changelist-internal.h')
-rw-r--r-- | changelist-internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/changelist-internal.h b/changelist-internal.h index 9e5b6bf0..fcf634f9 100644 --- a/changelist-internal.h +++ b/changelist-internal.h @@ -92,10 +92,10 @@ void event_changelist_remove_all(struct event_changelist *changelist, void event_changelist_freemem(struct event_changelist *changelist); /** Implementation of eventop_add that queues the event in a changelist. */ -int event_changelist_add(struct event_base *base, int fd, short old, short events, +int event_changelist_add(struct event_base *base, evutil_socket_t fd, short old, short events, void *p); /** Implementation of eventop_del that queues the event in a changelist. */ -int event_changelist_del(struct event_base *base, int fd, short old, short events, +int event_changelist_del(struct event_base *base, evutil_socket_t fd, short old, short events, void *p); #endif |