diff options
Diffstat (limited to 'libmpdvdkit2/libdvdcss.c')
-rw-r--r-- | libmpdvdkit2/libdvdcss.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libmpdvdkit2/libdvdcss.c b/libmpdvdkit2/libdvdcss.c index c272f28e3a..3bb6dfa6cb 100644 --- a/libmpdvdkit2/libdvdcss.c +++ b/libmpdvdkit2/libdvdcss.c @@ -387,7 +387,7 @@ extern dvdcss_t dvdcss_open ( char *psz_target ) "# This file is a cache directory tag created by libdvdcss.\r\n" "# For information about cache directory tags, see:\r\n" "# http://www.brynosaurus.com/cachedir/\r\n"; - unsigned char psz_tagfile[PATH_MAX+1+12+1]; + char psz_tagfile[PATH_MAX + 1 + 12 + 1]; int i_fd; sprintf( psz_tagfile, "%s/CACHEDIR.TAG", psz_cache ); @@ -403,9 +403,9 @@ extern dvdcss_t dvdcss_open ( char *psz_target ) if( psz_cache ) { uint8_t p_sector[DVDCSS_BLOCK_SIZE]; - unsigned char psz_debug[PATH_MAX+30]; - unsigned char psz_key[1 + KEY_SIZE * 2 + 1]; - unsigned char * psz_title, * psz_serial; + char psz_debug[PATH_MAX + 30]; + char psz_key[1 + KEY_SIZE * 2 + 1]; + char *psz_title, *psz_serial; int i; /* We read sector 0. If it starts with 0x000001ba (BE), we are @@ -446,7 +446,7 @@ extern dvdcss_t dvdcss_open ( char *psz_target ) } /* Get the disc title */ - psz_title = p_sector + 40; + psz_title = (char *)p_sector + 40; psz_title[32] = '\0'; for( i = 0 ; i < 32 ; i++ ) @@ -463,7 +463,7 @@ extern dvdcss_t dvdcss_open ( char *psz_target ) } /* Get the date + serial */ - psz_serial = p_sector + 813; + psz_serial = (char *)p_sector + 813; psz_serial[16] = '\0'; /* Check that all characters are digits, otherwise convert. */ |