Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77945
b: refs/heads/master
c: 2f4b489
h: refs/heads/master
i:
  77943: 48387d8
v: v3
  • Loading branch information
Andres Salomon authored and Sam Ravnborg committed Jan 28, 2008
1 parent 2c41956 commit a1f93b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 666ab414fe14e8bbbe86a110437346128e1ec869
refs/heads/master: 2f4b489b77c68b9cba1bd9dec5a1bbf0ab3c47f8
24 changes: 11 additions & 13 deletions trunk/scripts/kconfig/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,12 +495,12 @@ static void check_conf(struct menu *menu)

int main(int ac, char **av)
{
int i = 1;
int opt;
const char *name;
struct stat tmpstat;

if (ac > i && av[i][0] == '-') {
switch (av[i++][1]) {
while ((opt = getopt(ac, av, "osdD:nmyrh")) != -1) {
switch (opt) {
case 'o':
input_mode = ask_new;
break;
Expand All @@ -513,12 +513,7 @@ int main(int ac, char **av)
break;
case 'D':
input_mode = set_default;
defconfig_file = av[i++];
if (!defconfig_file) {
printf(_("%s: No default config file specified\n"),
av[0]);
exit(1);
}
defconfig_file = optarg;
break;
case 'n':
input_mode = set_no;
Expand All @@ -534,16 +529,19 @@ int main(int ac, char **av)
srandom(time(NULL));
break;
case 'h':
case '?':
fprintf(stderr, "See README for usage info\n");
printf("See README for usage info\n");
exit(0);
break;
default:
fprintf(stderr, "See README for usage info\n");
exit(1);
}
}
name = av[i];
if (!name) {
if (ac == optind) {
printf(_("%s: Kconfig file missing\n"), av[0]);
exit(1);
}
name = av[optind];
conf_parse(name);
//zconfdump(stdout);
switch (input_mode) {
Expand Down

0 comments on commit a1f93b7

Please sign in to comment.