summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2005-03-17 17:06:12 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2005-03-17 17:06:12 +0000
commitedbadb8e980bbc688f7fc9e6329840c6db5f73b8 (patch)
tree6bb7b47d6a6fb942f67dfca8aa8feba3463b88e5
parent9d48e90850031681840c9271445dacc4359f4fe5 (diff)
downloadhttpd-edbadb8e980bbc688f7fc9e6329840c6db5f73b8.tar.gz
Clean up emit for size truncation. Division here ensures we fit nicely.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@157946 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--ssl_engine_vars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl_engine_vars.c b/ssl_engine_vars.c
index 58a974e53c..4e625ce5a0 100644
--- a/ssl_engine_vars.c
+++ b/ssl_engine_vars.c
@@ -489,7 +489,7 @@ static char *ssl_var_lookup_ssl_cert_remain(apr_pool_t *p, ASN1_UTCTIME *tm)
return apr_pstrdup(p, "0");
}
- diff = (apr_time_sec(then) - apr_time_sec(now)) / (60*60*24);
+ diff = (long)(apr_time_sec(then) - apr_time_sec(now)) / (60*60*24));
return diff > 0 ? apr_ltoa(p, diff) : apr_pstrdup(p, "0");
}