Fixed signed/unsigned convertion errors in Salford-C.

#ifdef around WSAEDISCON in strerror.c.
This commit is contained in:
Gisle Vanem 2006-04-26 17:26:22 +00:00
parent 3cbb1b2b64
commit 12db20be4e
4 changed files with 6 additions and 5 deletions

View file

@ -519,10 +519,11 @@ get_winsock_error (int err, char *buf, size_t len)
case WSAEREMOTE:
p = "Remote error";
break;
#ifdef WSAEDISCON /* missing in SalfordC! */
case WSAEDISCON:
p = "Disconnected";
break;
#endif
/* Extended Winsock errors */
case WSASYSNOTREADY:
p = "Winsock library is not ready";