comparison libmpdvdkit2/css.c @ 8123:9fc45fe0d444

*HUGE* set of compiler warning fixes, unused variables removal based on patch by Dominik Mierzejewski <dominik@rangers.eu.org>
author arpi
date Wed, 06 Nov 2002 23:54:29 +0000
parents 596919e4f601
children 0211de3039eb
comparison
equal deleted inserted replaced
8122:272b1fda7287 8123:9fc45fe0d444
299 299
300 /* check teh CSS Key cache, if available: */ 300 /* check teh CSS Key cache, if available: */
301 if(dvdcss->psz_cache){ 301 if(dvdcss->psz_cache){
302 int fd; 302 int fd;
303 key_file=malloc(strlen(dvdcss->psz_cache)+12+4); 303 key_file=malloc(strlen(dvdcss->psz_cache)+12+4);
304 sprintf(key_file,"%s/%0.10x",dvdcss->psz_cache,i_block); 304 sprintf(key_file,"%s/%.10x",dvdcss->psz_cache,i_block);
305 if ( (fd=open( key_file,O_RDONLY ) ) > 0 ){ 305 if ( (fd=open( key_file,O_RDONLY ) ) > 0 ){
306 if(read(fd, p_title_key, 5)==5){ 306 if(read(fd, p_title_key, 5)==5){
307 // success! 307 // success!
308 free(key_file); key_file=NULL; 308 free(key_file); key_file=NULL;
309 i_ret=1; 309 i_ret=1;