]> git.sesse.net Git - vlc/commitdiff
Remove dummy utf8_open() mode parameter in absence of O_CREAT flag
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 15 Aug 2009 18:25:21 +0000 (21:25 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 15 Aug 2009 18:25:21 +0000 (21:25 +0300)
modules/access/dvdnav.c
modules/access/file.c
modules/access/mmap.c
modules/access/mtp.c
modules/access/vcd/cdrom.c
modules/misc/gnutls.c

index b226b56a8709a6c77511b158f02d6fe99fb5dd5d..d6bcb5aa711a98983bafc6bdce12282d2193dd0c 100644 (file)
@@ -1390,7 +1390,7 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name )
     if( !strcmp( psz_name, "-" ) ) /* stdin -> file access */
         return VLC_EGENERIC;
 
-    if( (i_fd = utf8_open( psz_name, O_RDONLY |O_NONBLOCK, 0666 )) == -1 )
+    if( (i_fd = utf8_open( psz_name, O_RDONLY |O_NONBLOCK )) == -1 )
     {
         return VLC_SUCCESS; /* Let dvdnav_open() do the probing */
     }
index 88b4d50975d77027239848f09c2b48506d1545fc..817f093857e822f1f39629037538d16bdbbf1cd9 100644 (file)
@@ -411,7 +411,7 @@ static int open_file (access_t *p_access, const char *path)
         path++;
 #endif
 
-    int fd = utf8_open (path, O_RDONLY | O_NONBLOCK /* O_LARGEFILE*/, 0666);
+    int fd = utf8_open (path, O_RDONLY | O_NONBLOCK);
     if (fd == -1)
     {
         msg_Err (p_access, "cannot open file %s (%m)", path);
index e36a8369333e10b010bbcecdb3ea7ada2c1b35fe..9a5ae6758a2938dee15d1a21db47f94f474a6b47 100644 (file)
@@ -94,7 +94,7 @@ static int Open (vlc_object_t *p_this)
     else
     {
         msg_Dbg (p_access, "opening file %s", path);
-        fd = utf8_open (path, O_RDONLY | O_NOCTTY, 0666);
+        fd = utf8_open (path, O_RDONLY | O_NOCTTY);
     }
 
     if (fd == -1)
index 4eb32a292cae83af4b99dbc46038de54ff7ddc5e..91cd8848ce56fa0a1894c95b9eb3224fa3fc07da 100644 (file)
@@ -299,7 +299,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
  *****************************************************************************/
 static int open_file( access_t *p_access, const char *path )
 {
-    int fd = utf8_open( path, O_RDONLY | O_NONBLOCK /* O_LARGEFILE*/, 0666 );
+    int fd = utf8_open( path, O_RDONLY | O_NONBLOCK );
     if( fd == -1 )
     {
         msg_Err( p_access, "cannot open file %s (%m)", path );
index ab00b346cdf32dd0a12b7d0560b9870a9479b0c1..d0ba68cc1b900fbcc52db654810dd8dafd83952c 100644 (file)
@@ -873,7 +873,7 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev,
 
     msg_Dbg( p_this,"guessing vcd image file: %s", psz_vcdfile );
     p_vcddev->i_vcdimage_handle = utf8_open( psz_vcdfile,
-                                    O_RDONLY | O_NONBLOCK | O_BINARY, 0666 );
+                                    O_RDONLY | O_NONBLOCK | O_BINARY );
  
     while( fgets( line, 1024, cuefile ) && !b_found )
     {
@@ -903,7 +903,7 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev,
                     } else psz_vcdfile = strdup( filename );
                     msg_Dbg( p_this,"using vcd image file: %s", psz_vcdfile );
                     p_vcddev->i_vcdimage_handle = utf8_open( psz_vcdfile,
-                                        O_RDONLY | O_NONBLOCK | O_BINARY, 0666 );
+                                        O_RDONLY | O_NONBLOCK | O_BINARY );
                 }
                 b_found = true;
             default:
index a718278cb742a675042461c613c95b9ca5e1447e..cc40818ffaceb256b5f3d37231c709f8f4a657be 100644 (file)
@@ -587,7 +587,7 @@ gnutls_Addx509File( vlc_object_t *p_this,
 {
     struct stat st;
 
-    int fd = utf8_open (psz_path, O_RDONLY, 0);
+    int fd = utf8_open (psz_path, O_RDONLY);
     if (fd == -1)
         goto error;