mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
windows: clean warnings around int usage
Change all plat instances of lws_plat_setnonblocking() to use lws_sockfd_type
This commit is contained in:
parent
1b51301c8d
commit
f5ccdd1825
6 changed files with 6 additions and 6 deletions
|
@ -885,7 +885,7 @@ user_callback_handle_rxflow(lws_callback_function, struct lws *wsi,
|
|||
void *in, size_t len);
|
||||
|
||||
LWS_EXTERN int
|
||||
lws_plat_set_nonblocking(int fd);
|
||||
lws_plat_set_nonblocking(lws_sockfd_type fd);
|
||||
|
||||
LWS_EXTERN int
|
||||
lws_plat_set_socket_options(struct lws_vhost *vhost, lws_sockfd_type fd,
|
||||
|
|
|
@ -149,7 +149,7 @@ lws_hex_to_byte_array(const char *h, uint8_t *dest, int max)
|
|||
if (max < 0)
|
||||
return -1;
|
||||
|
||||
return dest - odest;
|
||||
return lws_ptr_diff(dest, odest);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ lws_plat_check_connection_error(struct lws *wsi)
|
|||
}
|
||||
|
||||
int
|
||||
lws_plat_set_nonblocking(int fd)
|
||||
lws_plat_set_nonblocking(lws_sockfd_type fd)
|
||||
{
|
||||
return fcntl(fd, F_SETFL, O_NONBLOCK) < 0;
|
||||
}
|
||||
|
|
|
@ -126,7 +126,7 @@ void lwsl_emit_optee(int level, const char *line)
|
|||
}
|
||||
|
||||
int
|
||||
lws_plat_set_nonblocking(int fd)
|
||||
lws_plat_set_nonblocking(lws_sockfd_type fd)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ lws_send_pipe_choked(struct lws *wsi)
|
|||
}
|
||||
|
||||
int
|
||||
lws_plat_set_nonblocking(int fd)
|
||||
lws_plat_set_nonblocking(lws_sockfd_type fd)
|
||||
{
|
||||
return fcntl(fd, F_SETFL, O_NONBLOCK) < 0;
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ lws_poll_listen_fd(struct lws_pollfd *fd)
|
|||
}
|
||||
|
||||
int
|
||||
lws_plat_set_nonblocking(int fd)
|
||||
lws_plat_set_nonblocking(lws_sockfd_type fd)
|
||||
{
|
||||
u_long optl = 1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue