summaryrefslogtreecommitdiff
path: root/test/testtime.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2001-06-06 19:19:43 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2001-06-06 19:19:43 +0000
commited57b45ddaa3f24684465c758cec35a26ece0e08 (patch)
treeddea6b09e7ceeb8a9245b4dbfc7c7d859ec31805 /test/testtime.c
parent1812427697b6c82d5765e298a8b472fe65130776 (diff)
downloadapr-ed57b45ddaa3f24684465c758cec35a26ece0e08.tar.gz
This quiets the compiler, and prints the time delta discrepancy.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61719 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testtime.c')
-rw-r--r--test/testtime.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/testtime.c b/test/testtime.c
index 65812270e..ce60d9874 100644
--- a/test/testtime.c
+++ b/test/testtime.c
@@ -72,7 +72,7 @@ int main(void)
apr_pool_t *p;
char *str, *str2;
apr_size_t sz;
- apr_interval_time_t hr_off = -5 * 3600; /* 5 hours in seconds */
+ apr_int32_t hr_off = -5 * 3600; /* 5 hours in seconds */
fprintf(stdout, "Testing Time functions.\n");
@@ -180,7 +180,8 @@ int main(void)
hr_off *= APR_USEC_PER_SEC; /* microseconds */
if (imp != now + hr_off){
printf("Failed! :(\n");
- printf("Difference is %lld (should be %lld)\n", imp - now, hr_off);
+ printf("Difference is %" APR_TIME_T_FMT " (should be %"
+ APR_TIME_T_FMT ")\n", imp - now, hr_off);
exit(-1);
}
printf("OK\n");