diff options
Diffstat (limited to 'tests/libtest')
-rw-r--r-- | tests/libtest/lib503.c | 5 | ||||
-rw-r--r-- | tests/libtest/lib504.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/libtest/lib503.c b/tests/libtest/lib503.c index 126e257a6..f324b35d6 100644 --- a/tests/libtest/lib503.c +++ b/tests/libtest/lib503.c @@ -40,7 +40,10 @@ CURLcode test(char *URL) while(!done) { fd_set rd, wr, exc; int max_fd; - struct timeval interval={1,0}; + struct timeval interval; + + interval.tv_sec = 1; + interval.tv_usec = 0; while (res == CURLM_CALL_MULTI_PERFORM) { res = curl_multi_perform(m, &running); diff --git a/tests/libtest/lib504.c b/tests/libtest/lib504.c index 9eba0b764..0a9aff2cc 100644 --- a/tests/libtest/lib504.c +++ b/tests/libtest/lib504.c @@ -39,7 +39,10 @@ CURLcode test(char *URL) if(res && (res != CURLM_CALL_MULTI_PERFORM)) return 1; /* major failure */ do { - struct timeval interval={1,0}; + struct timeval interval; + + interval.tv_sec = 1; + interval.tv_usec = 0; fprintf(stderr, "curl_multi_perform()\n"); |