diff options
author | Yang Tse <yangsita@gmail.com> | 2007-02-16 16:01:19 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-02-16 16:01:19 +0000 |
commit | 4894ce16fc7af89d876e2f70db4dded7e1663198 (patch) | |
tree | 87d862afccc642c48f55d7549160859401b3face /tests/server/util.c | |
parent | aa4435c23b008450124d8c015e896d1002cb93ca (diff) | |
download | curl-4894ce16fc7af89d876e2f70db4dded7e1663198.tar.gz |
use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handling
Diffstat (limited to 'tests/server/util.c')
-rw-r--r-- | tests/server/util.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/server/util.c b/tests/server/util.c index ddc4bc949..5dbf6e658 100644 --- a/tests/server/util.c +++ b/tests/server/util.c @@ -59,19 +59,6 @@ const struct in6_addr in6addr_any = {{ IN6ADDR_ANY_INIT }}; #endif -/* - * our_sockerrno() returns the *socket-related* errno (or equivalent) on this - * platform to hide platform specific for the function that calls this. - */ -int our_sockerrno(void) -{ -#ifdef USE_WINSOCK - return (int)WSAGetLastError(); -#else - return errno; -#endif -} - /* someone else must set this properly */ extern const char *serverlogfile; |