Changeset 080a076a49837a7643778b78db14727017ec2bfb

Show
Ignore:
Timestamp:
05/06/08 22:15:52 (2 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1210104952 +0300
git-parent:

[146dad54bff773b990752e44b92aa35f87cbc678]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1210104628 +0300
Message:

config_GetConfigFile: remove unused parameter

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/config/configuration.h

    rf2ba521 r080a076  
    4545int __config_LoadCmdLine   ( vlc_object_t *, int *, const char *[], bool ); 
    4646char *config_GetHomeDir    ( void ); 
    47 char *config_GetConfigFile ( libvlc_int_t * ); 
    4847char *config_GetCustomConfigFile( libvlc_int_t * ); 
    4948int __config_LoadConfigFile( vlc_object_t *, const char * ); 
  • src/config/file.c

    r0038469 r080a076  
    4545} 
    4646 
     47/** 
     48 * Get the user's configuration file 
     49 */ 
     50static char *config_GetConfigFile( void ) 
     51{ 
     52    char *psz_dir = config_GetUserConfDir(); 
     53    char *psz_configfile; 
     54 
     55    if( asprintf( &psz_configfile, "%s" DIR_SEP CONFIG_FILE, psz_dir ) == -1 ) 
     56        psz_configfile = NULL; 
     57    free( psz_dir ); 
     58    return psz_configfile; 
     59} 
     60 
    4761static FILE *config_OpenConfigFile( vlc_object_t *p_obj, const char *mode ) 
    4862{ 
     
    5266    if( !psz_filename ) 
    5367    { 
    54         psz_filename = config_GetConfigFile( p_obj->p_libvlc ); 
     68        psz_filename = config_GetConfigFile(); 
    5569    } 
    5670 
     
    667681 
    668682/** 
    669  * Get the user's configuration file 
    670  */ 
    671 char *config_GetConfigFile( libvlc_int_t *p_libvlc ) 
    672 { 
    673     char *psz_dir = config_GetUserConfDir(); 
    674     char *psz_configfile; 
    675  
    676     if( asprintf( &psz_configfile, "%s" DIR_SEP CONFIG_FILE, psz_dir ) == -1 ) 
    677         psz_configfile = NULL; 
    678     free( psz_dir ); 
    679     return psz_configfile; 
    680 } 
    681  
    682 /** 
    683683 * Get the user's configuration file when given with the --config option 
    684684 */