aboutsummaryrefslogtreecommitdiff
path: root/tools/lxdrgen-go.awk
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lxdrgen-go.awk')
-rw-r--r--tools/lxdrgen-go.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lxdrgen-go.awk b/tools/lxdrgen-go.awk
index f129bc1..fb27c85 100644
--- a/tools/lxdrgen-go.awk
+++ b/tools/lxdrgen-go.awk
@@ -439,7 +439,7 @@ function codegen_struct(name, cg, gotype) {
delete cg[i]
}
-function codegen_union_tag(d, cg) {
+function codegen_union_tag(name, d, cg) {
cg["tagtype"] = d["type"]
cg["tagname"] = snaketocamel(d["name"])
# The tag is implied from the type of struct stored in the interface.