aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/test_upgrade_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/test_upgrade_common.c')
-rw-r--r--src/microhttpd/test_upgrade_common.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/microhttpd/test_upgrade_common.c b/src/microhttpd/test_upgrade_common.c
index 14336345..5ec45ec9 100644
--- a/src/microhttpd/test_upgrade_common.c
+++ b/src/microhttpd/test_upgrade_common.c
@@ -388,15 +388,16 @@ run_mhd_select_loop (struct MHD_Daemon *daemon)
388 &es, 388 &es,
389 &max_fd)) 389 &max_fd))
390 abort (); 390 abort ();
391 MHD_get_timeout (daemon, 391 (void) MHD_get_timeout (daemon,
392 &to); 392 &to);
393 tv.tv_sec = to / 1000; 393 tv.tv_sec = to / 1000;
394 tv.tv_usec = 1000 * (to % 1000); 394 tv.tv_usec = 1000 * (to % 1000);
395 select (max_fd + 1, 395 if (0 > MHD_SYS_select_ (max_fd + 1,
396 &rs, 396 &rs,
397 &ws, 397 &ws,
398 &es, 398 &es,
399 &tv); 399 &tv))
400 abort ();
400 MHD_run_from_select (daemon, 401 MHD_run_from_select (daemon,
401 &rs, 402 &rs,
402 &ws, 403 &ws,
@@ -442,8 +443,8 @@ run_mhd_epoll_loop (struct MHD_Daemon *daemon)
442 to = 1000; 443 to = 1000;
443 444
444 FD_SET (ep, &rs); 445 FD_SET (ep, &rs);
445 MHD_get_timeout (daemon, 446 (void) MHD_get_timeout (daemon,
446 &to); 447 &to);
447 tv.tv_sec = to / 1000; 448 tv.tv_sec = to / 1000;
448 tv.tv_usec = 1000 * (to % 1000); 449 tv.tv_usec = 1000 * (to % 1000);
449 select (ep + 1, 450 select (ep + 1,