diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-04-28 17:19:54 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-04-28 19:06:46 +0300 |
commit | ba77b04c65c5b6b0bad204f8e08f986b5c215dc0 (patch) | |
tree | 71e79ab5177d0cbb1acfacbf680177236b87283b /src/examples/post_example.c | |
parent | c6eae238be6357a7e0b77298a0cdada4c63e80bc (diff) | |
download | libmicrohttpd-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/examples/post_example.c')
-rw-r--r-- | src/examples/post_example.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/post_example.c b/src/examples/post_example.c index 1134a331..709fc918 100644 --- a/src/examples/post_example.c +++ b/src/examples/post_example.c | |||
@@ -733,7 +733,7 @@ main (int argc, char *const *argv) | |||
733 | fd_set ws; | 733 | fd_set ws; |
734 | fd_set es; | 734 | fd_set es; |
735 | MHD_socket max; | 735 | MHD_socket max; |
736 | MHD_UNSIGNED_LONG_LONG mhd_timeout; | 736 | uint64_t mhd_timeout; |
737 | 737 | ||
738 | if (argc != 2) | 738 | if (argc != 2) |
739 | { | 739 | { |
@@ -761,7 +761,7 @@ main (int argc, char *const *argv) | |||
761 | FD_ZERO (&es); | 761 | FD_ZERO (&es); |
762 | if (MHD_YES != MHD_get_fdset (d, &rs, &ws, &es, &max)) | 762 | if (MHD_YES != MHD_get_fdset (d, &rs, &ws, &es, &max)) |
763 | break; /* fatal internal error */ | 763 | break; /* fatal internal error */ |
764 | if (MHD_get_timeout (d, &mhd_timeout) == MHD_YES) | 764 | if (MHD_get_timeout64 (d, &mhd_timeout) == MHD_YES) |
765 | { | 765 | { |
766 | tv.tv_sec = mhd_timeout / 1000; | 766 | tv.tv_sec = mhd_timeout / 1000; |
767 | tv.tv_usec = (mhd_timeout - (tv.tv_sec * 1000)) * 1000; | 767 | tv.tv_usec = (mhd_timeout - (tv.tv_sec * 1000)) * 1000; |