identation and minor failure condition fix
This commit is contained in:
@@ -430,6 +430,7 @@ static int test_conf_syntax(char *config)
|
|||||||
} else
|
} else
|
||||||
log(ERROR, "Unknown config entry on line %d: %s",
|
log(ERROR, "Unknown config entry on line %d: %s",
|
||||||
j, buf);
|
j, buf);
|
||||||
|
failed = 1;
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
log(ERROR,
|
log(ERROR,
|
||||||
"Invalid value for \"%s\", line %d: \"%s\"",
|
"Invalid value for \"%s\", line %d: \"%s\"",
|
||||||
|
|||||||
@@ -74,7 +74,8 @@ int main(int argc, char *argv[])
|
|||||||
};
|
};
|
||||||
int opt = 0, opt_index = 0, fork_flag = 0;
|
int opt = 0, opt_index = 0, fork_flag = 0;
|
||||||
char *config = NULL;
|
char *config = NULL;
|
||||||
while ((opt = getopt_long(argc, argv, opts_short, opts_long, &opt_index)) != -1) {
|
while ((opt = getopt_long(argc, argv, opts_short, opts_long,
|
||||||
|
&opt_index)) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 0:
|
case 0:
|
||||||
if (opts_long[opt_index].flag != 0) {
|
if (opts_long[opt_index].flag != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user