diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-20 17:41:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-20 17:41:34 +0000 |
commit | 67c668dcd8883c3b8843735cc045cd009fdaf1c5 (patch) | |
tree | 0b0422fcf99248918a9c86062143ac0a7a650ea0 /usr.sbin | |
parent | 1cc7c5e32a65783f03aed3ec28f0d9d170c075d2 (diff) |
print large time_t nicely; ok benno
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/relayd/relay_http.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/relayd/relay_http.c b/usr.sbin/relayd/relay_http.c index 69ee12b18a0..d386de73f66 100644 --- a/usr.sbin/relayd/relay_http.c +++ b/usr.sbin/relayd/relay_http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relay_http.c,v 1.11 2013/03/10 23:32:53 reyk Exp $ */ +/* $OpenBSD: relay_http.c,v 1.12 2013/04/20 17:41:33 deraadt Exp $ */ /* * Copyright (c) 2006 - 2012 Reyk Floeter <reyk@openbsd.org> @@ -932,8 +932,8 @@ relay_expand_http(struct ctl_relay_event *cre, char *val, char *buf, size_t len) } } if (strstr(val, "$TIMEOUT") != NULL) { - snprintf(ibuf, sizeof(ibuf), "%lu", - rlay->rl_conf.timeout.tv_sec); + snprintf(ibuf, sizeof(ibuf), "%lld", + (long long)rlay->rl_conf.timeout.tv_sec); if (expand_string(buf, len, "$TIMEOUT", ibuf) != 0) return (NULL); } |