Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-14 06:13:09 +00:00

nfqws2: copy param set bool

This commit is contained in:
bol-van
2026-02-01 14:32:18 +03:00
parent 37f0f4589f
commit 740cbfbc34

View File

@@ -414,7 +414,7 @@ struct desync_profile_list *dp_list_add(struct desync_profile_list_head *head)
return entry;
}
#define DP_COPY_SIMPLE(v) if (from->b_##v) to->v=from->v;
#define DP_COPY_SIMPLE(v) if (from->b_##v) {to->v=from->v; to->b_##v=true;}
bool dp_copy(struct desync_profile *to, const struct desync_profile *from)
{
DP_COPY_SIMPLE(hostlist_auto_fail_threshold)