diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-08-23 20:36:45 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-08-23 20:36:45 +0000 |
commit | f60e4b727d6777f7d3a9fafa457c216b3323333f (patch) | |
tree | 6652ce196b630f40f07421c48d0d7d5dddb856b6 | |
parent | 070bf521d537e03f9ed59a2ab859793f5c72e1fd (diff) |
fix printf format for time_t. notified by casha@e7.pl. henning ok
-rw-r--r-- | libexec/spamd/spamd.c | 5 |
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); |