diff --git a/lua/zapret-antidpi.lua b/lua/zapret-antidpi.lua index 4255d56..270a8c3 100644 --- a/lua/zapret-antidpi.lua +++ b/lua/zapret-antidpi.lua @@ -894,7 +894,7 @@ function fakedsplit(ctx, desync) return desync.arg.nodrop and VERDICT_PASS or VERDICT_DROP end else - DLOG("fakedsplit: cannot resolve pos '"..desync.arg.pos.."'") + DLOG("fakedsplit: cannot resolve pos '"..spos.."'") end else DLOG("fakedsplit: not acting on further replay pieces") @@ -1009,7 +1009,7 @@ function fakeddisorder(ctx, desync) return desync.arg.nodrop and VERDICT_PASS or VERDICT_DROP end else - DLOG("fakeddisorder: cannot resolve pos '"..desync.arg.pos.."'") + DLOG("fakeddisorder: cannot resolve pos '"..spos.."'") end else DLOG("fakeddisorder: not acting on further replay pieces") diff --git a/nfq2/crypto/gcm.h b/nfq2/crypto/gcm.h index 42adad9..788faa3 100644 --- a/nfq2/crypto/gcm.h +++ b/nfq2/crypto/gcm.h @@ -29,7 +29,6 @@ #if defined(_MSC_VER) #include -typedef unsigned int size_t;// use the right type for length declarations typedef UINT32 uint32_t; typedef UINT64 uint64_t; #else diff --git a/nfq2/nfqws.c b/nfq2/nfqws.c index 2877951..8c7137a 100644 --- a/nfq2/nfqws.c +++ b/nfq2/nfqws.c @@ -1285,7 +1285,7 @@ struct func_list *parse_lua_call(char *opt, struct func_list_head *flist) struct func_list *f = NULL; if (!(name = item_name(&opt))) - return false; + return NULL; if (!is_identifier(name) || !(f=funclist_add_tail(flist,name))) goto err; @@ -2538,7 +2538,7 @@ int main(int argc, char **argv) } break; case IDX_HOSTLIST_AUTO_FAIL_THRESHOLD: - dp->hostlist_auto_fail_threshold = (uint8_t)atoi(optarg); + dp->hostlist_auto_fail_threshold = atoi(optarg); if (dp->hostlist_auto_fail_threshold < 1 || dp->hostlist_auto_fail_threshold>20) { DLOG_ERR("auto hostlist fail threshold must be within 1..20\n"); @@ -2547,7 +2547,7 @@ int main(int argc, char **argv) dp->b_hostlist_auto_fail_threshold = true; break; case IDX_HOSTLIST_AUTO_FAIL_TIME: - dp->hostlist_auto_fail_time = (uint8_t)atoi(optarg); + dp->hostlist_auto_fail_time = atoi(optarg); if (dp->hostlist_auto_fail_time < 1) { DLOG_ERR("auto hostlist fail time is not valid\n"); @@ -2556,7 +2556,7 @@ int main(int argc, char **argv) dp->b_hostlist_auto_fail_time = true; break; case IDX_HOSTLIST_AUTO_RETRANS_THRESHOLD: - dp->hostlist_auto_retrans_threshold = (uint8_t)atoi(optarg); + dp->hostlist_auto_retrans_threshold = atoi(optarg); if (dp->hostlist_auto_retrans_threshold < 2 || dp->hostlist_auto_retrans_threshold>10) { DLOG_ERR("auto hostlist fail threshold must be within 2..10\n"); diff --git a/nfq2/params.c b/nfq2/params.c index dc39328..dbc0bda 100644 --- a/nfq2/params.c +++ b/nfq2/params.c @@ -130,7 +130,7 @@ static int DLOG_FILENAME(const char *filename, const char *format, ...) } static void file_log_function(int priority, const char *line) { - DLOG_FILENAME(params.debug_logfile,"%s",log_buf); + DLOG_FILENAME(params.debug_logfile,"%s",line); } #ifdef __ANDROID__