aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Roth <mdroth@linux.vnet.ibm.com>2011-08-10 13:10:51 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-08-12 08:31:30 -0500
commit7534ba0130a29a3373ed10557e2c64452b75ba8a (patch)
tree1ec67ad290ed718f981a5aef7058dcf83cea2067 /scripts
parent7075ba3097091507de89650f6e4e247f7411ebad (diff)
downloadqemu-7534ba0130a29a3373ed10557e2c64452b75ba8a.zip
qemu-7534ba0130a29a3373ed10557e2c64452b75ba8a.tar.gz
qemu-7534ba0130a29a3373ed10557e2c64452b75ba8a.tar.bz2
qapi: fix build issue due to missing newline in generated header
Fixes a build issue on RHEL5, and potentially other distros, where gcc will generate an error due to us not writing a trailing "\n" when generating *qmp-commands.h Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/qapi-commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py
index 9ad4c54..bf61740 100644
--- a/scripts/qapi-commands.py
+++ b/scripts/qapi-commands.py
@@ -375,7 +375,7 @@ if dispatch_type == "sync":
ret = gen_marshal_input(cmd['command'], arglist, ret_type) + "\n"
fdef.write(ret)
- fdecl.write("\n#endif");
+ fdecl.write("\n#endif\n");
ret = gen_registry(commands)
fdef.write(ret)