diff options
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; |