diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/qapi-types.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py index 12fb2eff04..d28a6b07be 100644 --- a/scripts/qapi-types.py +++ b/scripts/qapi-types.py @@ -75,7 +75,6 @@ def generate_struct_fields(members): def generate_struct(expr): structname = expr.get('struct', "") - fieldname = expr.get('field', "") members = expr['data'] base = expr.get('base') @@ -98,12 +97,9 @@ struct %(name)s char qapi_dummy_field_for_empty_struct; ''') - if len(fieldname): - fieldname = " " + fieldname ret += mcgen(''' -}%(field)s; -''', - field=fieldname) +}; +''') return ret |