X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e896473d8a4690157768465449d7ba74910ce92..7ef67c25ff5fb94f4e40c461f23c4075810a0513:/src/os2/gsocket.c diff --git a/src/os2/gsocket.c b/src/os2/gsocket.c index bda9f5f035..b57aa868d2 100644 --- a/src/os2/gsocket.c +++ b/src/os2/gsocket.c @@ -1654,7 +1654,7 @@ GSocketError GAddress_INET_SetPortName(GAddress *address, const char *port, return GSOCK_INVPORT; } - se = getservbyname(port, protocol); + se = getservbyname(port, (char*)protocol); if (!se) { /* the cast to int suppresses compiler warnings about subscript having the