mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
clang fixes 1
https://github.com/warmcat/libwebsockets/issues/461 Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
934cc2a8ce
commit
20f18e0b1e
2 changed files with 3 additions and 1 deletions
|
@ -143,6 +143,8 @@ lws_handle_POLLOUT_event(struct lws *wsi, struct lws_pollfd *pollfd)
|
||||||
/* Priority 6: user can get the callback
|
/* Priority 6: user can get the callback
|
||||||
*/
|
*/
|
||||||
m = lws_ext_cb_active(wsi, LWS_EXT_CB_IS_WRITEABLE, NULL, 0);
|
m = lws_ext_cb_active(wsi, LWS_EXT_CB_IS_WRITEABLE, NULL, 0);
|
||||||
|
if (m)
|
||||||
|
return -1;
|
||||||
#ifndef LWS_NO_EXTENSIONS
|
#ifndef LWS_NO_EXTENSIONS
|
||||||
if (!wsi->extension_data_pending)
|
if (!wsi->extension_data_pending)
|
||||||
goto user_service;
|
goto user_service;
|
||||||
|
|
|
@ -360,7 +360,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
/* wait for all the service threads to exit */
|
/* wait for all the service threads to exit */
|
||||||
|
|
||||||
for (n = 0; n < lws_get_count_threads(context); n++)
|
while ((--n) >= 0)
|
||||||
pthread_join(pthread_service[n], &retval);
|
pthread_join(pthread_service[n], &retval);
|
||||||
|
|
||||||
/* wait for pthread_dumb to exit */
|
/* wait for pthread_dumb to exit */
|
||||||
|
|
Loading…
Add table
Reference in a new issue