Commit 8fe4188e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use vlc_dup

parent 71a1c8a6
...@@ -68,7 +68,6 @@ ...@@ -68,7 +68,6 @@
# define lseek _lseeki64 # define lseek _lseeki64
#elif defined( UNDER_CE ) #elif defined( UNDER_CE )
/* FIXME the commandline on wince is a mess */ /* FIXME the commandline on wince is a mess */
# define dup(a) -1
# define PathIsNetworkPathW(wpath) (! wcsncmp(wpath, L"\\\\", 2)) # define PathIsNetworkPathW(wpath) (! wcsncmp(wpath, L"\\\\", 2))
#endif #endif
...@@ -145,7 +144,7 @@ int Open( vlc_object_t *p_this ) ...@@ -145,7 +144,7 @@ int Open( vlc_object_t *p_this )
int oldfd = strtol (path, &end, 10); int oldfd = strtol (path, &end, 10);
if (*end == '\0') if (*end == '\0')
fd = dup (oldfd); fd = vlc_dup (oldfd);
#ifdef HAVE_FDOPENDIR #ifdef HAVE_FDOPENDIR
else if (*end == '/' && end > path) else if (*end == '/' && end > path)
{ {
......
...@@ -119,7 +119,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -119,7 +119,7 @@ static int Open( vlc_object_t *p_this )
#ifdef WIN32 #ifdef WIN32
setmode (fileno (stdout), O_BINARY); setmode (fileno (stdout), O_BINARY);
#endif #endif
fd = dup (fileno (stdout)); fd = vlc_dup (fileno (stdout));
msg_Dbg( p_access, "using stdout" ); msg_Dbg( p_access, "using stdout" );
#else #else
#warning stdout is not supported on Windows Mobile, but may be used on Windows CE #warning stdout is not supported on Windows Mobile, but may be used on Windows CE
......
...@@ -82,7 +82,7 @@ rtcp_sender_t *OpenRTCP (vlc_object_t *obj, int rtp_fd, int proto, ...@@ -82,7 +82,7 @@ rtcp_sender_t *OpenRTCP (vlc_object_t *obj, int rtp_fd, int proto,
{ {
/* RTP/RTCP mux: duplicate the socket */ /* RTP/RTCP mux: duplicate the socket */
#ifndef WIN32 #ifndef WIN32
fd = dup (rtp_fd); fd = vlc_dup (rtp_fd);
#elif defined(UNDER_CE) #elif defined(UNDER_CE)
#warning Muxed RTP/RTCP unimplemented! #warning Muxed RTP/RTCP unimplemented!
fd = -1; fd = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment