aboutsummaryrefslogtreecommitdiff
path: root/tools/lxdrgen-swift.awk
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lxdrgen-swift.awk')
-rw-r--r--tools/lxdrgen-swift.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lxdrgen-swift.awk b/tools/lxdrgen-swift.awk
index 9ee30de..22de56f 100644
--- a/tools/lxdrgen-swift.awk
+++ b/tools/lxdrgen-swift.awk
@@ -215,7 +215,7 @@ function codegen_struct(name, cg, swifttype) {
delete cg[i]
}
-function codegen_union_tag(d, cg) {
+function codegen_union_tag(name, d, cg) {
cg["tagtype"] = d["type"]
cg["tagname"] = decapitalize(snaketocamel(d["name"]))
}