X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e896473d8a4690157768465449d7ba74910ce92..786c4e23f5d91c319804b4204ebda023b959794c:/src/os2/gsocket.c diff --git a/src/os2/gsocket.c b/src/os2/gsocket.c index bda9f5f035..c230c3da4d 100644 --- a/src/os2/gsocket.c +++ b/src/os2/gsocket.c @@ -4,7 +4,7 @@ * Authors: Guilhem Lavaux, * Guillermo Rodriguez Garcia (maintainer) * Purpose: GSocket main Unix and OS/2 file - * Licence: The wxWindows licence + * Licence: The wxWidgets licence * CVSID: $Id$ * ------------------------------------------------------------------------- */ @@ -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