summaryrefslogtreecommitdiff
path: root/tests/libtest/lib503.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-25 06:03:50 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-25 06:03:50 +0000
commit245ab7c79642bc055445aac77e3307cab279d23a (patch)
tree191e1354e2e5c46b0648790d648e97b4b69dd973 /tests/libtest/lib503.c
parent2bdf52d4c55a194e5167cf1e60126e5c6d1496dd (diff)
downloadcurl-245ab7c79642bc055445aac77e3307cab279d23a.tar.gz
avoid dependence on the order of the fields in the timeval struct, pointed out
by Gisle Vanem
Diffstat (limited to 'tests/libtest/lib503.c')
-rw-r--r--tests/libtest/lib503.c5
1 files changed, 4 insertions, 1 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);