apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1480851 - /apr/apr/trunk/test/testtime.c
Date Fri, 10 May 2013 01:53:49 GMT
Author: fuankg
Date: Fri May 10 01:53:49 2013
New Revision: 1480851

URL: http://svn.apache.org/r1480851
Log:
Fix for stupid CodeWarrior compiler which cant deal with vars as initialize value.

Submitted by: normw gknw net.

Modified:
    apr/apr/trunk/test/testtime.c

Modified: apr/apr/trunk/test/testtime.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testtime.c?rev=1480851&r1=1480850&r2=1480851&view=diff
==============================================================================
--- apr/apr/trunk/test/testtime.c (original)
+++ apr/apr/trunk/test/testtime.c Fri May 10 01:53:49 2013
@@ -86,9 +86,13 @@ static void test_gmtstr(abts_case *tc, v
 
 static void test_exp_lt(abts_case *tc, void *data)
 {
-	apr_time_t test_times[] = {now, leap_year_now, 0};
+	apr_time_t test_times[3];
 	int i;
 
+	test_times[0] = now;
+	test_times[1] = leap_year_now;
+	test_times[2] = 0;
+
 	for (i = 0; test_times[i] != 0; i++) {
 	    apr_status_t rv;
         apr_time_exp_t xt;



Mime
View raw message