mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
clean unmix declarations and code
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
fdde0f0a03
commit
4edb452969
1 changed files with 8 additions and 5 deletions
13
lib/pollfd.c
13
lib/pollfd.c
|
@ -131,16 +131,19 @@ do_ext:
|
|||
int
|
||||
lws_change_pollfd(struct libwebsocket *wsi, int _and, int _or)
|
||||
{
|
||||
if (!wsi || !wsi->protocol || wsi->position_in_fds_table < 0)
|
||||
return 1;
|
||||
struct libwebsocket_context *context = wsi->protocol->owning_server;
|
||||
if (!context)
|
||||
return 1;
|
||||
struct libwebsocket_context *context;
|
||||
int tid;
|
||||
int sampled_tid;
|
||||
struct libwebsocket_pollfd *pfd;
|
||||
struct libwebsocket_pollargs pa;
|
||||
|
||||
if (!wsi || !wsi->protocol || wsi->position_in_fds_table < 0)
|
||||
return 1;
|
||||
|
||||
context = wsi->protocol->owning_server;
|
||||
if (!context)
|
||||
return 1;
|
||||
|
||||
pfd = &context->fds[wsi->position_in_fds_table];
|
||||
pa.fd = wsi->sock;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue