aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wydawca.c')
-rw-r--r--src/wydawca.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/wydawca.c b/src/wydawca.c
index b265ade..1d953b9 100644
--- a/src/wydawca.c
+++ b/src/wydawca.c
@@ -33,7 +33,7 @@ int enable_sendfile = 1; /* Use sendfile by default */
int archive_signatures = 1; /* Archive sig files by default */
int lint_mode = 0;
int preprocess_only = 0;
-
+
unsigned wydawca_stat[MAX_STAT];
void
@@ -86,7 +86,7 @@ syslog_printer (int prio, const char *fmt, va_list ap)
sprintf (fmtbuf, "[%s] %s", p, fmt);
fmt = fmtbuf;
}
-
+
#if HAVE_VSYSLOG
vsyslog (prio, fmt, ap);
#else
@@ -126,11 +126,11 @@ logmsg (int prio, char *fmt, ...)
case LOG_ERR:
UPDATE_STATS (STAT_ERRORS);
break;
-
+
case LOG_WARNING:
UPDATE_STATS (STAT_WARNINGS);
}
-
+
va_start (ap, fmt);
log_printer (prio, fmt, ap);
va_end (ap);
@@ -180,19 +180,19 @@ static char *stat_name[MAX_STAT] = {
};
static char *stat_kwname[MAX_STAT] = {
- "stat:errors",
- "stat:warnings",
- "stat:bad_signatures",
- "stat:access_violations",
- "stat:complete_triplets",
- "stat:incomplete_triplets",
- "stat:bad_triplets",
- "stat:expired_triplets",
- "stat:triplet_success",
- "stat:uploads",
- "stat:archives",
- "stat:symlinks",
- "stat:rmsymlinks",
+ "stat:errors",
+ "stat:warnings",
+ "stat:bad_signatures",
+ "stat:access_violations",
+ "stat:complete_triplets",
+ "stat:incomplete_triplets",
+ "stat:bad_triplets",
+ "stat:expired_triplets",
+ "stat:triplet_success",
+ "stat:uploads",
+ "stat:archives",
+ "stat:symlinks",
+ "stat:rmsymlinks",
};
int
@@ -241,7 +241,7 @@ logstats ()
if (print_stats & STAT_MASK (i))
logmsg (LOG_INFO, "%s: %u", stat_name[i], wydawca_stat[i]);
}
-
+
mail_stats ();
}
@@ -270,7 +270,7 @@ gconf_print_diag (gconf_locus_t *locus, int err, int errcode, const char *msg)
}
#include "cmdline.h"
-
+
int
main (int argc, char **argv)
{
@@ -279,15 +279,15 @@ main (int argc, char **argv)
config_init ();
parse_options (argc, argv);
-
+
if (argc != optind)
error (1, 0, "extra command line arguments");
if (preprocess_only)
exit (gconf_preproc_run (conffile, gconf_preprocessor));
-
+
gconf_parse (conffile);
-
+
if (lint_mode)
exit (0);
@@ -302,7 +302,7 @@ main (int argc, char **argv)
}
mail_init ();
-
+
logmsg (LOG_NOTICE, "wydawca (%s) started", PACKAGE_STRING);
scan_directories ();

Return to:

Send suggestions and report system problems to the System administrator.