summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2011-09-01 19:56:50 +0000
committerEric Faurot <eric@cvs.openbsd.org>2011-09-01 19:56:50 +0000
commitad47ec1eeb8b886915ea232368f798df48ab734d (patch)
treeb82ac55260162a3f1cdc3b009a94233126a1ecfc /usr.sbin/smtpd/smtpd.c
parent9541d1e9935ed1f995936e6a2abd46c1ee30eaed (diff)
Introduce a small set of functions to manage stat counters in a
simpler and hopefully saner way. ok gilles@ chl@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r--usr.sbin/smtpd/smtpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c
index ddd27ea2270..e52b1257004 100644
--- a/usr.sbin/smtpd/smtpd.c
+++ b/usr.sbin/smtpd/smtpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.c,v 1.129 2011/08/29 21:43:09 chl Exp $ */
+/* $OpenBSD: smtpd.c,v 1.130 2011/09/01 19:56:49 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -513,6 +513,7 @@ main(int argc, char *argv[])
if (env->stats == MAP_FAILED)
fatal("mmap");
bzero(env->stats, sizeof(struct stats));
+ stat_init(env->stats->counters, STATS_MAX);
env->stats->parent.start = time(NULL);