]> git.sesse.net Git - vlc/commitdiff
DVDnav: kill a warning on read return
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 9 Aug 2014 19:49:01 +0000 (21:49 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 9 Aug 2014 19:49:01 +0000 (21:49 +0200)
modules/access/dvdnav.c

index 1ba59e20f58bfc95d1dee4139d434ecd5421c318..826179ebf857a3449ef7cff60237da35ad4ca3aa 100644 (file)
@@ -1469,7 +1469,7 @@ static int ProbeDVD( const char *psz_name )
     /* ISO 9660 volume descriptor */
     char iso_dsc[6];
     if( lseek( fd, 0x8000 + 1, SEEK_SET ) == -1
-     || read( fd, iso_dsc, sizeof (iso_dsc) ) < sizeof (iso_dsc)
+     || read( fd, iso_dsc, sizeof (iso_dsc) ) < (int)sizeof (iso_dsc)
      || memcmp( iso_dsc, "CD001\x01", 6 ) )
         goto bailout;