X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=config%2Fconf.c;h=ceafacb0e98dc6103a94265583a63562922d97dc;hb=a6cfffd112f5be4d6bcc16e5f4104db7f8e30415;hp=ea4080d6eaab0b93b3752cd858604571547ad353;hpb=9288bfffd420d06945e607d6df0d581f3a582508;p=carl9170fw.git diff --git a/config/conf.c b/config/conf.c index ea4080d..ceafacb 100644 --- a/config/conf.c +++ b/config/conf.c @@ -511,11 +511,12 @@ int main(int ac, char **av) seed_env = getenv("KCONFIG_SEED"); if( seed_env && *seed_env ) { char *endp; - int tmp = (int)strtol(seed_env, &endp, 10); + int tmp = (int)strtol(seed_env, &endp, 0); if (*endp == '\0') { seed = tmp; } } + fprintf( stderr, "KCONFIG_SEED=0x%X\n", seed ); srand(seed); break; } @@ -614,7 +615,8 @@ int main(int ac, char **av) conf_set_all_new_symbols(def_default); break; case randconfig: - conf_set_all_new_symbols(def_random); + /* Really nothing to do in this loop */ + while (conf_set_all_new_symbols(def_random)) ; break; case defconfig: conf_set_all_new_symbols(def_default); @@ -642,7 +644,7 @@ int main(int ac, char **av) if (input_mode == savedefconfig) { if (conf_write_defconfig(defconfig_file)) { fprintf(stderr, _("n*** Error while saving defconfig to: %s\n\n"), - defconfig_file); + defconfig_file); return 1; } } else if (input_mode != listnewconfig) {