X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=config%2Fconf.c;h=567f3b7410098a49d96e67186eb51ea5b195332a;hb=e64410ae1fc3f2db21bc15812149871e61638589;hp=9cb55bfbd46061eb0f86e6982a737690366eec2e;hpb=26347adf92b2c37b1b3eee55e610539f75dcfa92;p=carl9170fw.git diff --git a/config/conf.c b/config/conf.c index 9cb55bf..567f3b7 100644 --- a/config/conf.c +++ b/config/conf.c @@ -451,7 +451,7 @@ static struct option long_opts[] = { {"oldaskconfig", no_argument, NULL, oldaskconfig}, {"oldconfig", no_argument, NULL, oldconfig}, {"syncconfig", no_argument, NULL, syncconfig}, - {"defconfig", optional_argument, NULL, defconfig}, + {"defconfig", required_argument, NULL, defconfig}, {"savedefconfig", required_argument, NULL, savedefconfig}, {"allnoconfig", no_argument, NULL, allnoconfig}, {"allyesconfig", no_argument, NULL, allyesconfig}, @@ -562,8 +562,6 @@ int main(int ac, char **av) switch (input_mode) { case defconfig: - if (!defconfig_file) - defconfig_file = conf_get_default_confname(); if (conf_read(defconfig_file)) { fprintf(stderr, "***\n"