summaryrefslogtreecommitdiff
path: root/test/regress_zlib.c
diff options
context:
space:
mode:
authorSebastian Sjöberg <Sebastian.Sjoberg@axis.com>2010-04-14 15:42:57 -0400
committerSebastian Sjöberg <Sebastian.Sjoberg@axis.com>2010-04-14 15:42:57 -0400
commit899c1dcc9807650ec90e0d5c847d2997fce9b751 (patch)
tree3d8a5d5eecaa8e29a17471981ad1b7f8122dd900 /test/regress_zlib.c
parent0861d1708ba6d035ff4c834e2aac0b5855f64afa (diff)
downloadlibevent-899c1dcc9807650ec90e0d5c847d2997fce9b751.tar.gz
Replace EVUTIL_CLOSESOCKET macro with a function
The EVUTIL_CLOSESOCKET() macro required you to include unistd.h in your source for POSIX. We might as well turn it into a function: an extra function call is going to be cheap in comparison with the system call. We retain the EVUTIL_CLOSESOCKET() macro as an alias for the new evutil_closesocket() function. (commit message from email by Nick and Sebastian)
Diffstat (limited to 'test/regress_zlib.c')
-rw-r--r--test/regress_zlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/regress_zlib.c b/test/regress_zlib.c
index a301eaf3..5ef78ea9 100644
--- a/test/regress_zlib.c
+++ b/test/regress_zlib.c
@@ -313,7 +313,7 @@ end:
bufferevent_free(bev2);
if (pair[0] >= 0)
- EVUTIL_CLOSESOCKET(pair[0]);
+ evutil_closesocket(pair[0]);
if (pair[1] >= 0)
- EVUTIL_CLOSESOCKET(pair[1]);
+ evutil_closesocket(pair[1]);
}