X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=options.c;h=1eed8d489aa885da960c82236da8d9f6a6a8d5d2;hb=260365f6312bdbadc5c65ee6aec86e2bfaea1494;hp=3947a38a959855a5621c4673c00bafbb8b198033;hpb=a49a766c6fc0bf053b5843c5addc98cbdb7a043c;p=pkg%2Fabook.git diff --git a/options.c b/options.c index 3947a38..1eed8d4 100644 --- a/options.c +++ b/options.c @@ -339,7 +339,7 @@ load_opts(char *filename) FILE *in; char *line = NULL; int n; - bool err = FALSE; + int err = 0; if((in = fopen(filename, "r")) == NULL) return -1; @@ -354,7 +354,7 @@ load_opts(char *filename) if(line && *line) { opt_line_remove_comments(line); if(*line) - err = opt_parse_line(line, n, filename); + err += opt_parse_line(line, n, filename) ? 1:0; } my_free(line); @@ -362,11 +362,6 @@ load_opts(char *filename) free(line); - if(err) { - printf("Press enter to continue...\n"); - fgetc(stdin); - } - return err; }