Commit 5cdd8862 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Well, this time maybe

parent b6ab7590
...@@ -79,7 +79,7 @@ static const wsaerrmsg_t wsaerrmsg[] = ...@@ -79,7 +79,7 @@ static const wsaerrmsg_t wsaerrmsg[] =
//WSAESTALE //WSAESTALE
//WSAEREMOTE //WSAEREMOTE
//WSAEDISCON //WSAEDISCON
{ WSASYSNOTREADY, "Network stack not ready" }, { WSASYSNOTREADY, "Network stack not ready" },
{ WSAVERNOTSUPPORTED, "Network stack version not supported" }, { WSAVERNOTSUPPORTED, "Network stack version not supported" },
{ WSANOTINITIALISED, "Network not initialized" }, { WSANOTINITIALISED, "Network not initialized" },
{ WSAHOST_NOT_FOUND, "Hostname not found" }, { WSAHOST_NOT_FOUND, "Hostname not found" },
...@@ -97,9 +97,9 @@ const char *net_strerror( int value ) ...@@ -97,9 +97,9 @@ const char *net_strerror( int value )
* Winsock errors. Some old versions had s_error, but it appears to be * Winsock errors. Some old versions had s_error, but it appears to be
* gone, and is not documented. * gone, and is not documented.
*/ */
for( const wsaerrmsg_t *e = wsaerrmsg; e.msg != NULL; e++ ) for( const wsaerrmsg_t *e = wsaerrmsg; e->msg != NULL; e++ )
if( e.code == value ) if( e->code == value )
return e.msg; return e->msg;
return "Unknown network stack error"; return "Unknown network stack error";
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment