trawick 2003/04/15 07:56:01
Modified: test testdate.c
Log:
use APR_TIME_T_FMT instead of assuming that apr_time_t is long long int
Revision Changes Path
1.7 +5 -5 apr-util/test/testdate.c
Index: testdate.c
===================================================================
RCS file: /home/cvs/apr-util/test/testdate.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- testdate.c 10 Sep 2002 08:25:43 -0000 1.6
+++ testdate.c 15 Apr 2003 14:56:01 -0000 1.7
@@ -167,13 +167,13 @@
secstodate *= APR_USEC_PER_SEC;
newsecs = apr_date_parse_http(datestr);
if (secstodate == newsecs)
- printf("Yes %4d %19lld %s\n", year, secstodate, datestr);
+ printf("Yes %4d %19" APR_TIME_T_FMT " %s\n", year, secstodate,
datestr);
else if (newsecs == APR_DATE_BAD)
- printf("No %4d %19lld %19lld %s\n", year, secstodate,
- newsecs, datestr);
+ printf("No %4d %19" APR_TIME_T_FMT " %19" APR_TIME_T_FMT "
%s\n",
+ year, secstodate, newsecs, datestr);
else
- printf("No* %4d %19lld %19lld %s\n", year, secstodate,
- newsecs, datestr);
+ printf("No* %4d %19" APR_TIME_T_FMT " %19" APR_TIME_T_FMT "
%s\n",
+ year, secstodate, newsecs, datestr);
}
srand48(978245L);