aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/perf_get_concurrent.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-28 17:19:54 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-28 19:06:46 +0300
commitba77b04c65c5b6b0bad204f8e08f986b5c215dc0 (patch)
tree71e79ab5177d0cbb1acfacbf680177236b87283b /src/testcurl/perf_get_concurrent.c
parentc6eae238be6357a7e0b77298a0cdada4c63e80bc (diff)
downloadlibmicrohttpd-ba77b04c65c5b6b0bad204f8e08f986b5c215dc0.tar.gz
libmicrohttpd-ba77b04c65c5b6b0bad204f8e08f986b5c215dc0.zip
Replaced calls of MHD_get_timeout() in tests and examples
The calls were replaced with the calls of the new functions. Completely removed the usage of MHD_UNSIGNED_LONG_LONG.
Diffstat (limited to 'src/testcurl/perf_get_concurrent.c')
-rw-r--r--src/testcurl/perf_get_concurrent.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testcurl/perf_get_concurrent.c b/src/testcurl/perf_get_concurrent.c
index ea282874..80f66eea 100644
--- a/src/testcurl/perf_get_concurrent.c
+++ b/src/testcurl/perf_get_concurrent.c
@@ -413,7 +413,7 @@ testExternalGet (int port)
413 fd_set es; 413 fd_set es;
414 MHD_socket max; 414 MHD_socket max;
415 struct timeval tv; 415 struct timeval tv;
416 MHD_UNSIGNED_LONG_LONG tt; 416 uint64_t tt64;
417 int tret; 417 int tret;
418 char *ret_val; 418 char *ret_val;
419 int ret = 0; 419 int ret = 0;
@@ -455,11 +455,11 @@ testExternalGet (int port)
455 MHD_stop_daemon (d); 455 MHD_stop_daemon (d);
456 return 4096; 456 return 4096;
457 } 457 }
458 tret = MHD_get_timeout (d, &tt); 458 tret = MHD_get_timeout64 (d, &tt64);
459 if (MHD_YES != tret) 459 if (MHD_YES != tret)
460 tt = 1; 460 tt64 = 1;
461 tv.tv_sec = tt / 1000; 461 tv.tv_sec = tt64 / 1000;
462 tv.tv_usec = 1000 * (tt % 1000); 462 tv.tv_usec = 1000 * (tt64 % 1000);
463 if (-1 == select (max + 1, &rs, &ws, &es, &tv)) 463 if (-1 == select (max + 1, &rs, &ws, &es, &tv))
464 { 464 {
465#ifdef MHD_POSIX_SOCKETS 465#ifdef MHD_POSIX_SOCKETS