summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-08-23 20:36:45 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-08-23 20:36:45 +0000
commitf60e4b727d6777f7d3a9fafa457c216b3323333f (patch)
tree6652ce196b630f40f07421c48d0d7d5dddb856b6
parent070bf521d537e03f9ed59a2ab859793f5c72e1fd (diff)
fix printf format for time_t. notified by casha@e7.pl. henning ok
-rw-r--r--libexec/spamd/spamd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c
index 4838a1cf8fa..5c2dde1a86e 100644
--- a/libexec/spamd/spamd.c
+++ b/libexec/spamd/spamd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spamd.c,v 1.36 2003/07/29 18:39:23 deraadt Exp $ */
+/* $OpenBSD: spamd.c,v 1.37 2003/08/23 20:36:44 itojun Exp $ */
/*
* Copyright (c) 2002 Theo de Raadt. All rights reserved.
@@ -534,7 +534,8 @@ closecon(struct con *cp)
time_t t;
time(&t);
- printf("%s connected for %d seconds.\n", cp->addr, t - cp->s);
+ printf("%s connected for %ld seconds.\n", cp->addr,
+ (long)(t - cp->s));
}
if (cp->lists != NULL) {
free(cp->lists);