]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/sockets/client.cpp
final prototype fixes (done using ifacecheck)
[wxWidgets.git] / samples / sockets / client.cpp
index 8c336ba34e5c507727eec9c86f91b87cbfba4b5d..ce196d8cd632bfdced3efa10170519b521e3787f 100644 (file)
@@ -38,9 +38,7 @@
 // --------------------------------------------------------------------------
 
 // the application icon
-#if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__)
-#  include "mondrian.xpm"
-#endif
+#include "mondrian.xpm"
 
 // --------------------------------------------------------------------------
 // classes
@@ -287,18 +285,16 @@ void MyFrame::OnOpenConnectionIPv6(wxCommandEvent& WXUNUSED(event))
 void MyFrame::OpenConnection(int family)
 {
   wxIPaddress * addr;
+  wxIPV4address addr4;
 #if wxUSE_IPV6
   wxIPV6address addr6;
-  wxIPV4address addr4;
-  if(family==AF_INET6)
-  {
-    addr = & addr6;
-  } else {
-    addr = & addr4;
-  }
+  if ( family==AF_INET6 )
+    addr = &addr6;
+  else
+    addr = &addr4;
 #else
-  wxIPV4address addr4;
-  addr = & addr4;
+  wxUnusedVar(family);
+  addr = &addr4;
 #endif
 
   m_menuSocket->Enable(CLIENT_OPEN, false);