From ad47ec1eeb8b886915ea232368f798df48ab734d Mon Sep 17 00:00:00 2001 From: Eric Faurot Date: Thu, 1 Sep 2011 19:56:50 +0000 Subject: Introduce a small set of functions to manage stat counters in a simpler and hopefully saner way. ok gilles@ chl@ --- usr.sbin/smtpd/smtpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/smtpd/smtpd.c') 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 @@ -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); -- cgit v1.2.3