]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/gsocket.c
don't use wxFileConfig to parse kdeglobals, it's not meant for such use. Fixes bug...
[wxWidgets.git] / src / os2 / gsocket.c
index bda9f5f0356470d9f7e63f49488ba7e5e8ada796..b57aa868d27b6c2508d45c51e7f158c915bb46bc 100644 (file)
@@ -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