]> git.sesse.net Git - vlc/blobdiff - modules/access_output/udp.c
Remove useless <errno.h> inclusions
[vlc] / modules / access_output / udp.c
index d9782ca4236c2b7d9d137520bea6c2a757d24606..2733660eebc34e92dfc5d3aa596cb522455f8cfd 100644 (file)
@@ -34,7 +34,6 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <errno.h>
 #include <fcntl.h>
 #include <assert.h>
 
@@ -175,7 +174,7 @@ static int Open( vlc_object_t *p_this )
     if (psz_parser[0] == '[')
         psz_parser = strchr (psz_parser, ']');
 
-    psz_parser = strchr (psz_parser ?: psz_dst_addr, ':');
+    psz_parser = strchr (psz_parser ? psz_parser : psz_dst_addr, ':');
     if (psz_parser != NULL)
     {
         *psz_parser++ = '\0';