aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-05-11 21:28:27 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-05-11 21:28:27 +0300
commit1d5c381b4eaf65686cec02f04572cf2abe50e71d (patch)
tree4b51dc0310e95db105175ce19be0fa97309d3a6e
parent787bfd1859db22c58271f287dfcb505c0052edd3 (diff)
downloadlibmicrohttpd-1d5c381b4eaf65686cec02f04572cf2abe50e71d.tar.gz
libmicrohttpd-1d5c381b4eaf65686cec02f04572cf2abe50e71d.zip
Compiler warning minor fixes
-rw-r--r--src/microhttpd/connection.c11
-rw-r--r--src/microhttpd/daemon.c2
-rw-r--r--src/microhttpd/internal.h2
3 files changed, 13 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 803eccba..a65757e3 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1587,6 +1587,14 @@ MHD_connection_update_event_loop_info (struct MHD_Connection *connection)
1587 case MHD_CONNECTION_CLOSED: 1587 case MHD_CONNECTION_CLOSED:
1588 connection->event_loop_info = MHD_EVENT_LOOP_INFO_CLEANUP; 1588 connection->event_loop_info = MHD_EVENT_LOOP_INFO_CLEANUP;
1589 return; /* do nothing, not even reading */ 1589 return; /* do nothing, not even reading */
1590 case MHD_CONNECTION_IN_CLEANUP:
1591 EXTRA_CHECK (0);
1592 break;
1593#ifdef UPGRADE_SUPPORT
1594 case MHD_CONNECTION_UPGRADE:
1595 EXTRA_CHECK (0);
1596 break;
1597#endif /* UPGRADE_SUPPORT */
1590 default: 1598 default:
1591 EXTRA_CHECK (0); 1599 EXTRA_CHECK (0);
1592 } 1600 }
@@ -2784,6 +2792,9 @@ MHD_connection_handle_write (struct MHD_Connection *connection)
2784 case MHD_TLS_CONNECTION_INIT: 2792 case MHD_TLS_CONNECTION_INIT:
2785 EXTRA_CHECK (0); 2793 EXTRA_CHECK (0);
2786 break; 2794 break;
2795 case MHD_CONNECTION_IN_CLEANUP:
2796 EXTRA_CHECK (0);
2797 break;
2787#ifdef UPGRADE_SUPPORT 2798#ifdef UPGRADE_SUPPORT
2788 case MHD_CONNECTION_UPGRADE: 2799 case MHD_CONNECTION_UPGRADE:
2789 EXTRA_CHECK (0); 2800 EXTRA_CHECK (0);
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 526773e1..4bc61d76 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -779,7 +779,7 @@ urh_to_fdset (struct MHD_UpgradeResponseHandle *urh,
779 * @param urh upgrade handle to update 779 * @param urh upgrade handle to update
780 * @param rs read result from select() 780 * @param rs read result from select()
781 * @param ws write result from select() 781 * @param ws write result from select()
782 * @param ws except result from select() 782 * @param es except result from select()
783 */ 783 */
784static void 784static void
785urh_from_fdset (struct MHD_UpgradeResponseHandle *urh, 785urh_from_fdset (struct MHD_UpgradeResponseHandle *urh,
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index e2d8cfb6..a77e0a04 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -568,7 +568,7 @@ typedef ssize_t
568 */ 568 */
569typedef ssize_t 569typedef ssize_t
570(*TransmitCallback) (struct MHD_Connection *conn, 570(*TransmitCallback) (struct MHD_Connection *conn,
571 const void *write_to, 571 const void *read_from,
572 size_t max_bytes); 572 size_t max_bytes);
573 573
574 574