aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-03-11 22:10:35 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2013-03-11 22:10:35 +0200
commit10a5f20232d2a57beb0a50b38b1d7196a7f5236e (patch)
treeeb9016172b7ea9705209003eef1e1c2afaa2786e /src/wydawca.c
parentdfe6343d9522cea2e6653abc267b42040925b3e6 (diff)
downloadwydawca-10a5f20232d2a57beb0a50b38b1d7196a7f5236e.tar.gz
wydawca-10a5f20232d2a57beb0a50b38b1d7196a7f5236e.tar.bz2
Namespace normalization (1).
syslog_tag -> wy_syslog_tag log_facility -> wy_log_facility log_to_stderr -> wy_log_to_stderr
Diffstat (limited to 'src/wydawca.c')
-rw-r--r--src/wydawca.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/wydawca.c b/src/wydawca.c
index 66c6390..e88ec34 100644
--- a/src/wydawca.c
+++ b/src/wydawca.c
@@ -25,9 +25,9 @@ char *conffile = SYSCONFDIR "/wydawca.rc";
const char *wy_version = "wydawca (" PACKAGE_STRING ")";
int wy_debug_level;
int dry_run_mode;
-int log_to_stderr = -1; /* -1 means autodetect */
-int log_facility = LOG_LOCAL1;
-char *syslog_tag = "wydawca";
+int wy_log_to_stderr = -1; /* -1 means autodetect */
+int wy_log_facility = LOG_LOCAL1;
+char *wy_syslog_tag = "wydawca";
int syslog_include_prio; /* syslog messages include priority */
unsigned long print_stats; /* Print final statistics output */
time_t file_sweep_time = 0;
@@ -382,12 +382,12 @@ main(int argc, char **argv)
if (single_process_option >= 0)
single_process = single_process_option;
- if (log_to_stderr == -1)
- log_to_stderr = (!daemon_mode || foreground) && isatty(0);
+ if (wy_log_to_stderr == -1)
+ wy_log_to_stderr = (!daemon_mode || foreground) && isatty(0);
- grecs_log_to_stderr = log_to_stderr;
- if (!log_to_stderr) {
- openlog(syslog_tag, LOG_PID, log_facility);
+ grecs_log_to_stderr = wy_log_to_stderr;
+ if (!wy_log_to_stderr) {
+ openlog(wy_syslog_tag, LOG_PID, wy_log_facility);
log_printer = syslog_printer;
}

Return to:

Send suggestions and report system problems to the System administrator.