From 245ab7c79642bc055445aac77e3307cab279d23a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 25 Oct 2003 06:03:50 +0000 Subject: avoid dependence on the order of the fields in the timeval struct, pointed out by Gisle Vanem --- tests/libtest/lib504.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/libtest/lib504.c') 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"); -- cgit v1.2.3