Skip to content
Snippets Groups Projects
Commit 245ab7c7 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

avoid dependence on the order of the fields in the timeval struct, pointed out

by Gisle Vanem
parent 2bdf52d4
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment