diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2011-08-29 21:43:10 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2011-08-29 21:43:10 +0000 |
commit | bdbf27829b9a3d91a783816ef1652030405644c9 (patch) | |
tree | 1038f1d0de51d726a44718156af8e44ee3b6df5d /usr.sbin/smtpd/smtpctl.c | |
parent | 08872065a616a8d6ab27c539c0f9c9a02e5850bf (diff) |
cast all printed time_t to long long int, and change format string accordingly.
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpctl.c')
-rw-r--r-- | usr.sbin/smtpd/smtpctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpctl.c b/usr.sbin/smtpd/smtpctl.c index 0ea3c5eec8a..1eda752cbc1 100644 --- a/usr.sbin/smtpd/smtpctl.c +++ b/usr.sbin/smtpd/smtpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpctl.c,v 1.64 2011/08/26 14:39:47 chl Exp $ */ +/* $OpenBSD: smtpctl.c,v 1.65 2011/08/29 21:43:09 chl Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -323,7 +323,8 @@ show_stats_output(struct imsg *imsg) printf("lka.queries.cname=%zd\n", stats->lka.queries_cname); printf("lka.queries.failure=%zd\n", stats->lka.queries_failure); - printf("parent.uptime=%d\n", time(NULL) - stats->parent.start); + printf("parent.uptime=%lld\n", + (long long int) (time(NULL) - stats->parent.start)); printf("queue.inserts.local=%zd\n", stats->queue.inserts_local); printf("queue.inserts.remote=%zd\n", stats->queue.inserts_remote); |