Commit 8aaba3a7 authored by Niels Möller's avatar Niels Möller
Browse files

(logfile_flag): New global variable.

(syslog_flag): Deleted.
(werror_argp_parser): Set logfile_flag of a log file option is
encountered.

Rev: src/werror.c:1.59
Rev: src/werror.h:1.27
parent 2e664edd
......@@ -56,7 +56,7 @@ int trace_flag = 0;
int debug_flag = 0;
int quiet_flag = 0;
int verbose_flag = 0;
int syslog_flag = 0;
int logfile_flag = 0;
static const char *program_name = NULL;
......@@ -111,7 +111,10 @@ werror_argp_parser(int key, char *arg,
if (fd < 0)
argp_error(state, "Failed to open log file `%s'.", arg);
else
set_error_stream(fd);
{
set_error_stream(fd);
logfile_flag = 1;
}
}
}
return 0;
......
......@@ -36,6 +36,7 @@ extern int trace_flag;
extern int debug_flag;
extern int quiet_flag;
extern int verbose_flag;
extern int logfile_flag;
extern const struct argp werror_argp;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment