summaryrefslogtreecommitdiff
path: root/test/test-time.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-03-05 12:47:46 -0500
committerNick Mathewson <nickm@torproject.org>2010-03-05 12:47:46 -0500
commitc7cf6f004951615cf775431d4f47663a20f2db6e (patch)
treeca892f58ba9e0abfe54a3ff8f1becc1746e234aa /test/test-time.c
parent38b7b571c81d1545bb4b6a1c5e4fd9e1bf0f542d (diff)
downloadlibevent-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/test-time.c')
-rw-r--r--test/test-time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-time.c b/test/test-time.c
index 17a019a6..c1b449b2 100644
--- a/test/test-time.c
+++ b/test/test-time.c
@@ -37,7 +37,7 @@ rand_int(int n)
}
static void
-time_cb(int fd, short event, void *arg)
+time_cb(evutil_socket_t fd, short event, void *arg)
{
struct timeval tv;
int i, j;