mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
win align to recent changes
These were warnings seen on Appveyor Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
1fa7685a28
commit
ab4a94dd46
3 changed files with 5 additions and 5 deletions
|
@ -36,7 +36,7 @@ time_t time(time_t *t)
|
|||
/* file descriptor hash management */
|
||||
|
||||
struct lws *
|
||||
wsi_from_fd(struct lws_context *context, lws_sockfd_type fd)
|
||||
wsi_from_fd(const struct lws_context *context, lws_sockfd_type fd)
|
||||
{
|
||||
int h = LWS_FD_HASH(fd);
|
||||
int n = 0;
|
||||
|
|
|
@ -71,7 +71,7 @@ callback_lws_mirror(struct lws_context *context,
|
|||
lwsl_err("ERROR %d writing to mirror socket\n", n);
|
||||
return -1;
|
||||
}
|
||||
if (n < ringbuffer[pss->ringbuffer_tail].len)
|
||||
if (n < (int)ringbuffer[pss->ringbuffer_tail].len)
|
||||
lwsl_err("mirror partial write %d vs %d\n",
|
||||
n, ringbuffer[pss->ringbuffer_tail].len);
|
||||
|
||||
|
|
|
@ -107,13 +107,13 @@ static lws_filefd_type
|
|||
test_server_fops_open(struct lws *wsi, const char *filename,
|
||||
unsigned long *filelen, int flags)
|
||||
{
|
||||
int n;
|
||||
lws_filefd_type n;
|
||||
|
||||
/* call through to original platform implementation */
|
||||
n = fops_plat.open(wsi, filename, filelen, flags);
|
||||
|
||||
lwsl_notice("%s: opening %s, ret %d, len %lu\n", __func__, filename,
|
||||
n, *filelen);
|
||||
lwsl_notice("%s: opening %s, ret %ld, len %lu\n", __func__, filename,
|
||||
(long)n, *filelen);
|
||||
|
||||
return n;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue