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/mda.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/mda.c')
-rw-r--r-- | usr.sbin/smtpd/mda.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/mda.c b/usr.sbin/smtpd/mda.c index 2d267508400..9f3dd26e0af 100644 --- a/usr.sbin/smtpd/mda.c +++ b/usr.sbin/smtpd/mda.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mda.c,v 1.58 2011/08/29 18:49:29 chl Exp $ */ +/* $OpenBSD: mda.c,v 1.59 2011/08/29 21:43:08 chl Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -218,9 +218,9 @@ mda_imsg(struct imsgev *iev, struct imsg *imsg) /* log status */ if (error && asprintf(&error, "Error (%s)", error) < 0) fatal("mda: asprintf"); - log_info("%016llx: to=<%s@%s>, delay=%d, stat=%s", + log_info("%016llx: to=<%s@%s>, delay=%lld, stat=%s", s->msg.delivery.id, maddr->user, maddr->domain, - time(NULL) - s->msg.delivery.creation, + (long long int) (time(NULL) - s->msg.delivery.creation), error ? error : "Sent"); free(error); |