mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-12 22:10:12 -04:00
Fix compilation of recent error code with win32.
svn:r937
This commit is contained in:
parent
de069b9977
commit
fded0a8783
4
evutil.c
4
evutil.c
@ -305,10 +305,10 @@ evutil_socket_error_to_string(int errcode)
|
||||
/* XXXX Is there really no built-in function to do this? */
|
||||
int i;
|
||||
for (i=0; windows_socket_errors[i].code >= 0; ++i) {
|
||||
if (e == windows_socket_errors[i].code)
|
||||
if (errcode == windows_socket_errors[i].code)
|
||||
return windows_socket_errors[i].msg;
|
||||
}
|
||||
return strerror(e);
|
||||
return strerror(errcode);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user