]> git.sesse.net Git - vlc/blobdiff - modules/control/netsync.c
The last but not the least commit about these useless tests.
[vlc] / modules / control / netsync.c
index da6b40466fd84cedc242ab10b36d478915a85115..5bcfa14252e8103699e98636fe923a2fce8ce201 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc_interface.h>
 #include <vlc_input.h>
@@ -38,7 +42,7 @@
 #ifdef HAVE_SYS_TYPES_H
 #   include <sys/types.h>
 #endif
-#ifdef HAVE_POLL_H
+#ifdef HAVE_POLL
 #   include <poll.h>
 #endif
 
@@ -154,7 +158,7 @@ static void Run( intf_thread_t *p_intf )
     else
         i_socket = net_ConnectUDP( VLC_OBJECT(p_intf), psz_master, NETSYNC_PORT, 0 );
 
-    if( psz_master ) free( psz_master );
+    free( psz_master );
 
     if( i_socket < 0 )
     {