| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Libevent
Revision: 937
Author: nickm
Date: 05 Sep 2008 12:47:04
Changes:Fix compilation of recent error code with win32.
Files:| ... | ...@@ -305,10 +305,10 @@ | |
| 305 | 305 | /* XXXX Is there really no built-in function to do this? */ |
| 306 | 306 | int i; |
| 307 | 307 | for (i=0; windows_socket_errors[i].code >= 0; ++i) { |
| 308 | if (e == windows_socket_errors[i].code) | |
| 308 | if (errcode == windows_socket_errors[i].code) | |
| 309 | 309 | return windows_socket_errors[i].msg; |
| 310 | 310 | } |
| 311 | return strerror(e); | |
| 311 | return strerror(errcode); | |
| 312 | 312 | } |
| 313 | 313 | #endif |
| 314 | 314 |
| ... | ...@@ -300,7 +300,7 @@ | |
| 300 | 300 | send(evsignal_base->sig.ev_signal_pair[0], "a", 1, 0); |
| 301 | 301 | errno = save_errno; |
| 302 | 302 | #ifdef WIN32 |
| 303 | EVUTIL_SET_SOCKET_ERRNO(socket_error); | |
| 303 | EVUTIL_SET_SOCKET_ERROR(socket_errno); | |
| 304 | 304 | #endif |
| 305 | 305 | } |
| 306 | 306 |