aboutsummaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-01 16:15:08 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-01 22:12:37 +0300
commit93dcf8ea912ceb2eb83b73a7e5165a08c4db9312 (patch)
treefa6d756e8a65120a715a17621d6ed3244c14b215 /doc/examples
parent74c2eba238ff26788eae3afac68307f49a82099b (diff)
downloadlibmicrohttpd-93dcf8ea912ceb2eb83b73a7e5165a08c4db9312.tar.gz
libmicrohttpd-93dcf8ea912ceb2eb83b73a7e5165a08c4db9312.zip
src/examples: muted compiler warnings
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/sessions.c4
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