aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/response.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-06-12 23:40:51 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-06-12 23:40:51 +0300
commitb10f4140c68bd41ed600abf08b4990d79be598b4 (patch)
tree8e5e8e0d05d2957d759623f83dfe27032f332d74 /src/microhttpd/response.c
parent279a9ad2ab9f504264f3e1a671fc427a18079205 (diff)
downloadlibmicrohttpd-b10f4140c68bd41ed600abf08b4990d79be598b4.tar.gz
libmicrohttpd-b10f4140c68bd41ed600abf08b4990d79be598b4.zip
Use 'mhd_assert()'
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r--src/microhttpd/response.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index 7b2b4eb7..a0ecf3ea 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -714,7 +714,7 @@ MHD_upgrade_action (struct MHD_UpgradeResponseHandle *urh,
714 SHUT_RDWR); 714 SHUT_RDWR);
715 } 715 }
716#endif /* HTTPS_SUPPORT */ 716#endif /* HTTPS_SUPPORT */
717 EXTRA_CHECK (MHD_CONNECTION_UPGRADE == connection->state); 717 mhd_assert (MHD_CONNECTION_UPGRADE == connection->state);
718 urh->was_closed = true; 718 urh->was_closed = true;
719 /* As soon as connection will be marked with BOTH 719 /* As soon as connection will be marked with BOTH
720 * 'urh->was_closed' AND 'urh->clean_ready', it will 720 * 'urh->was_closed' AND 'urh->clean_ready', it will
@@ -885,7 +885,7 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response,
885 to the event set of the daemon's `epoll_upgrade_fd` */ 885 to the event set of the daemon's `epoll_upgrade_fd` */
886 struct epoll_event event; 886 struct epoll_event event;
887 887
888 EXTRA_CHECK (-1 != daemon->epoll_upgrade_fd); 888 mhd_assert (-1 != daemon->epoll_upgrade_fd);
889 /* First, add network socket */ 889 /* First, add network socket */
890 event.events = EPOLLIN | EPOLLOUT | EPOLLPRI | EPOLLET; 890 event.events = EPOLLIN | EPOLLOUT | EPOLLPRI | EPOLLET;
891 event.data.ptr = &urh->app; 891 event.data.ptr = &urh->app;