]> granicus.if.org Git - apache/commitdiff
Clean up emit for size truncation. Division here ensures we fit nicely.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 17 Mar 2005 17:06:12 +0000 (17:06 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 17 Mar 2005 17:06:12 +0000 (17:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@157946 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_vars.c

index 58a974e53cfaa5aadb51d4fe9317a64dd7b5d9d9..4e625ce5a05e26d46897c31afa67c85c8c1a4283 100644 (file)
@@ -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");
 }