]> git.sesse.net Git - vlc/commitdiff
Use vlc_dup
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 7 Feb 2010 13:54:39 +0000 (15:54 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 7 Feb 2010 13:54:39 +0000 (15:54 +0200)
modules/access/file.c
modules/access_output/file.c
modules/stream_out/rtcp.c

index f443a7f3418848436d647760a092a28ee1a6f6f5..e9c75d232c55ac9fbdc49a3e258b3c47d982a235 100644 (file)
@@ -68,7 +68,6 @@
 #   define lseek _lseeki64
 #elif defined( UNDER_CE )
 /* FIXME the commandline on wince is a mess */
-# define dup(a) -1
 # define PathIsNetworkPathW(wpath) (! wcsncmp(wpath, L"\\\\", 2))
 #endif
 
@@ -145,7 +144,7 @@ int Open( vlc_object_t *p_this )
         int oldfd = strtol (path, &end, 10);
 
         if (*end == '\0')
-            fd = dup (oldfd);
+            fd = vlc_dup (oldfd);
 #ifdef HAVE_FDOPENDIR
         else if (*end == '/' && end > path)
         {
index 73bd8d5c741cf873fc1f0aaf5e87e9dc3f2f1c0e..36abb60b6033a8d8e6b9c4e3fccaea3053eef5ff 100644 (file)
@@ -119,7 +119,7 @@ static int Open( vlc_object_t *p_this )
 #ifdef WIN32
         setmode (fileno (stdout), O_BINARY);
 #endif
-        fd = dup (fileno (stdout));
+        fd = vlc_dup (fileno (stdout));
         msg_Dbg( p_access, "using stdout" );
 #else
 #warning stdout is not supported on Windows Mobile, but may be used on Windows CE
index 54e2c83fa571f93add49e4ad1063584cf8c97ed7..2821c5c84969ae81f3109ce0a980947e7c85d14d 100644 (file)
@@ -82,7 +82,7 @@ rtcp_sender_t *OpenRTCP (vlc_object_t *obj, int rtp_fd, int proto,
     {
         /* RTP/RTCP mux: duplicate the socket */
 #ifndef WIN32
-        fd = dup (rtp_fd);
+        fd = vlc_dup (rtp_fd);
 #elif defined(UNDER_CE)
  #warning Muxed RTP/RTCP unimplemented!
         fd = -1;