aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi-event.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/qapi-event.py')
-rw-r--r--scripts/qapi-event.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/qapi-event.py b/scripts/qapi-event.py
index 91874d84fb..9de5c6748e 100644
--- a/scripts/qapi-event.py
+++ b/scripts/qapi-event.py
@@ -201,9 +201,9 @@ fdecl.write(mcgen('''
event_enum_name = c_name(prefix + 'QAPIEvent', protect=False)
schema = QAPISchema(input_file)
-gen = QAPISchemaGenEventVisitor()
-schema.visit(gen)
-fdef.write(gen.defn)
-fdecl.write(gen.decl)
+vis = QAPISchemaGenEventVisitor()
+schema.visit(vis)
+fdef.write(vis.defn)
+fdecl.write(vis.decl)
close_output(fdef, fdecl)