kconfig/menuconfig: do not hardcode '.config'

Export and use the function conf_get_configname()
to retreive the default configuration filename.

Suggested by: Roman Zippel <zippel@linux-m68k.org>

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
Sam Ravnborg 2007-04-01 22:29:38 +02:00 committed by Sam Ravnborg
parent 87c94bfb8a
commit d802b50f0d
2 changed files with 2 additions and 1 deletions

View File

@ -64,6 +64,7 @@ int zconf_lineno(void);
char *zconf_curname(void); char *zconf_curname(void);
/* confdata.c */ /* confdata.c */
const char *conf_get_configname(void);
char *conf_get_default_confname(void); char *conf_get_default_confname(void);
void sym_set_change_count(int count); void sym_set_change_count(int count);
void sym_add_change_count(int count); void sym_add_change_count(int count);

View File

@ -905,7 +905,7 @@ int main(int ac, char **av)
init_wsize(); init_wsize();
reset_dialog(); reset_dialog();
init_dialog(NULL); init_dialog(NULL);
set_config_filename(".config"); set_config_filename(conf_get_configname());
do { do {
conf(&rootmenu); conf(&rootmenu);
dialog_clear(); dialog_clear();