Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions plugins/lua/ts_lua_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ typedef struct {
char script[TS_LUA_MAX_SCRIPT_FNAME_LENGTH];
void *conf_vars[TS_LUA_MAX_CONFIG_VARS_COUNT];

int _first : 1; // create current instance for 1st ts_lua_main_ctx
int _last : 1; // create current instance for the last ts_lua_main_ctx
unsigned int _first : 1; // create current instance for 1st ts_lua_main_ctx
unsigned int _last : 1; // create current instance for the last ts_lua_main_ctx

int remap;
int states;
Expand Down Expand Up @@ -160,10 +160,10 @@ typedef struct {
ts_lua_http_ctx *hctx;

int64_t to_flush;
int reuse : 1;
int recv_complete : 1;
int send_complete : 1;
int all_ready : 1;
unsigned int reuse : 1;
unsigned int recv_complete : 1;
unsigned int send_complete : 1;
unsigned int all_ready : 1;
} ts_lua_http_intercept_ctx;

#define TS_LUA_RELEASE_IO_HANDLE(ih) \
Expand Down
2 changes: 1 addition & 1 deletion plugins/lua/ts_lua_coroutine.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ typedef struct async_item {
void *data; // private data

async_clean cleanup; // cleanup function
int deleted : 1;
unsigned int deleted : 1;
} ts_lua_async_item;

ts_lua_async_item *ts_lua_async_create_item(TSCont cont, async_clean func, void *d, ts_lua_cont_info *ci);
Expand Down
4 changes: 2 additions & 2 deletions plugins/lua/ts_lua_fetch.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ typedef struct {
TSIOBufferReader reader;
TSFetchSM fch;

int over : 1;
int failed : 1;
unsigned int over : 1;
unsigned int failed : 1;
} ts_lua_fetch_info;

typedef struct fetch_multi_info {
Expand Down