]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/gsocket.c
added a preImage of the selection in order to avoid unnecessary events being triggered
[wxWidgets.git] / src / unix / gsocket.c
index 9fa98f1f4798f01784c9265ef30f6e043b2e0e51..0da32b61eb9741d64628d705b87af43a80b9bc57 100644 (file)
@@ -351,7 +351,6 @@ GAddress *GSocket_GetPeer(GSocket *socket)
  */
 GSocketError GSocket_SetServer(GSocket *sck)
 {
-  int type;
   int arg = 1;
 
   assert(sck != NULL);
@@ -1500,7 +1499,9 @@ GSocketError GAddress_INET_SetPortName(GAddress *address, const char *port,
   se = getservbyname(port, protocol);
   if (!se)
   {
-    if (isdigit(port[0]))
+    /* the cast to int suppresses compiler warnings about subscript having the
+       type char */
+    if (isdigit((int)port[0]))
     {
       int port_int;