trawick 2003/04/15 07:51:37
Modified: test testreslist.c
Log:
apr_time_t isn't always long long
use the APR macro for declaring a constant time value
Revision Changes Path
1.4 +4 -4 apr-util/test/testreslist.c
Index: testreslist.c
===================================================================
RCS file: /home/cvs/apr-util/test/testreslist.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- testreslist.c 1 Jan 2003 00:02:22 -0000 1.3
+++ testreslist.c 15 Apr 2003 14:51:37 -0000 1.4
@@ -70,12 +70,12 @@
#define RESLIST_MIN 3
#define RESLIST_SMAX 10
#define RESLIST_HMAX 20
-#define RESLIST_TTL (350000LL) /* 35 ms */
+#define RESLIST_TTL APR_TIME_C(350000) /* 35 ms */
#define CONSUMER_THREADS 25
#define CONSUMER_ITERATIONS 250
-#define CONSTRUCT_SLEEP_TIME (250000LL) /* 25 ms */
-#define DESTRUCT_SLEEP_TIME (100000LL) /* 10 ms */
-#define WORK_DELAY_SLEEP_TIME (150000LL) /* 15 ms */
+#define CONSTRUCT_SLEEP_TIME APR_TIME_C(250000) /* 25 ms */
+#define DESTRUCT_SLEEP_TIME APR_TIME_C(100000) /* 10 ms */
+#define WORK_DELAY_SLEEP_TIME APR_TIME_C(150000) /* 15 ms */
typedef struct {
apr_interval_time_t sleep_upon_construct;