Skip to content

Commit 6eea533

Browse files
committed
refractor(luanetfilter): remove duplicated marco
1 parent 2f6b82f commit 6eea533

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lib/luanetfilter.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,6 @@ do { \
2929
lua_pop(L, 1); \
3030
} while (0)
3131

32-
#define lunatik_setstring(L, idx, hook, field, maxlen) \
33-
do { \
34-
size_t len; \
35-
lunatik_checkfield(L, idx, #field, LUA_TSTRING); \
36-
const char *str = lua_tolstring(L, -1, &len); \
37-
if (len > maxlen) \
38-
luaL_error(L, "'%s' is too long", #field); \
39-
strncpy((char *)hook->field, str, maxlen); \
40-
lua_pop(L, 1); \
41-
} while (0)
42-
4332
const lunatik_reg_t luanetfilter_family[] = {
4433
{"UNSPEC", NFPROTO_UNSPEC},
4534
{"INET", NFPROTO_INET},

0 commit comments

Comments
 (0)