$OpenBSD: patch-src_misc_modules_c,v 1.7 2008/06/09 22:55:43 sthen Exp $ --- src/misc/modules.c.orig Sat May 10 12:26:00 2008 +++ src/misc/modules.c Wed Jun 4 10:14:32 2008 @@ -1591,6 +1591,7 @@ static char * GetWindowsError( void ) *****************************************************************************/ static void CacheLoad( vlc_object_t *p_this ) { +#if 0 char *psz_filename, *psz_homedir; FILE *file; int i, j, i_size, i_read; @@ -1709,6 +1710,7 @@ static void CacheLoad( vlc_object_t *p_this ) if( i_cache ) pp_cache = p_this->p_libvlc->p_module_bank->pp_loaded_cache = malloc( i_cache * sizeof(void *) ); +#endif /* 0 */ #define LOAD_IMMEDIATE(a) \ if( fread( &a, sizeof(char), sizeof(a), file ) != sizeof(a) ) goto error @@ -1725,7 +1727,7 @@ static void CacheLoad( vlc_object_t *p_this ) } else a = 0; \ } while(0) - +#if 0 for( i = 0; i < i_cache; i++ ) { uint16_t i_size; @@ -1801,6 +1803,7 @@ static void CacheLoad( vlc_object_t *p_this ) p_this->p_libvlc->p_module_bank->i_loaded_cache = 0; fclose( file ); +#endif /* 0 */ return; }