diff options
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/sessions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/sessions.c b/doc/examples/sessions.c index 121cf2e0..7f62e73b 100644 --- a/doc/examples/sessions.c +++ b/doc/examples/sessions.c | |||
@@ -778,8 +778,8 @@ main (int argc, char *const *argv) | |||
778 | break; /* fatal internal error */ | 778 | break; /* fatal internal error */ |
779 | if (MHD_get_timeout64 (d, &mhd_timeout) == MHD_YES) | 779 | if (MHD_get_timeout64 (d, &mhd_timeout) == MHD_YES) |
780 | { | 780 | { |
781 | tv.tv_sec = mhd_timeout / 1000; | 781 | tv.tv_sec = (time_t) mhd_timeout / 1000; |
782 | tv.tv_usec = (mhd_timeout - (tv.tv_sec * 1000)) * 1000; | 782 | tv.tv_usec = ((long) (mhd_timeout % 1000)) * 1000; |
783 | tvp = &tv; | 783 | tvp = &tv; |
784 | } | 784 | } |
785 | else | 785 | else |