]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/gsocket.c
reverted Julian's unintentional breakage of wxChoice
[wxWidgets.git] / src / os2 / gsocket.c
index 222c0e24d1149e96e1dc67d01282de9eca769e50..242e3f4038831c9ffb91eaa085ec60dbfc8f5d99 100644 (file)
@@ -1491,12 +1491,12 @@ GSocketError GAddress_INET_SetHostName(GAddress *address, const char *hostname)
   {
 #elif defined(HAVE_INET_ADDR)
   addr->s_addr = inet_addr(hostname);
-  if ( (addr->s_addr == -1 )
+  if ( addr->s_addr == -1 )
   {
 #else
   /* Use gethostbyname by default */
-//  int val = 1;  //VA doesn't like constants in conditional expressions at all
-  if (1)
+  int val = 1;  //VA doesn't like constants in conditional expressions at all
+  if (val)
   {
 #endif
     struct in_addr *array_addr;