We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94bd965 commit 702aae3Copy full SHA for 702aae3
1 file changed
ynl-gen-cpp.py
@@ -2277,6 +2277,11 @@ def print_req(ri):
2277
if ri.fixed_hdr:
2278
local_vars += ["size_t hdr_len;", "void *hdr;"]
2279
2280
+ for _, arg in ri.struct["request"].member_list():
2281
+ if arg.type == "indexed-array":
2282
+ local_vars.append("struct nlattr *array;")
2283
+ break
2284
+
2285
print_prototype(ri, direction, terminate=False)
2286
ri.cw.block_start()
2287
ri.cw.write_func_lvar(local_vars)
0 commit comments