mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
lejp: fix warnings on windows
This commit is contained in:
parent
afb7b30f0d
commit
1b51301c8d
2 changed files with 4 additions and 3 deletions
|
@ -146,7 +146,8 @@ void
|
|||
lejp_check_path_match(struct lejp_ctx *ctx)
|
||||
{
|
||||
const char *p, *q;
|
||||
int n, s = sizeof(char *);
|
||||
int n;
|
||||
size_t s = sizeof(char *);
|
||||
|
||||
if (ctx->path_stride)
|
||||
s = ctx->path_stride;
|
||||
|
|
|
@ -32,7 +32,7 @@ lws_struct_schema_only_lejp_cb(struct lejp_ctx *ctx, char reason)
|
|||
{
|
||||
lws_struct_args_t *a = (lws_struct_args_t *)ctx->user;
|
||||
const lws_struct_map_t *map = a->map_st[ctx->pst_sp];
|
||||
int n = a->map_entries_st[ctx->pst_sp];
|
||||
size_t n = a->map_entries_st[ctx->pst_sp];
|
||||
lejp_callback cb = map->lejp_cb;
|
||||
|
||||
if (reason != LEJPCB_VAL_STR_END || ctx->path_match != 1)
|
||||
|
@ -93,7 +93,7 @@ lws_struct_default_lejp_cb(struct lejp_ctx *ctx, char reason)
|
|||
const lws_struct_map_t *map, *pmap = NULL;
|
||||
uint8_t *ch;
|
||||
char *u;
|
||||
int n;
|
||||
size_t n;
|
||||
|
||||
if (reason == LEJPCB_ARRAY_END) {
|
||||
lejp_parser_pop(ctx);
|
||||
|
|
Loading…
Add table
Reference in a new issue