qapi: fix build issue due to missing newline in generated header
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 10 Aug 2011 18:10:51 +0000 (13:10 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 12 Aug 2011 13:31:30 +0000 (08:31 -0500)
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>
scripts/qapi-commands.py

index 9ad4c549914d6070624f75c4c354cbb210bd2405..bf617401ad2651b0ed1079100558eb1691b94973 100644 (file)
@@ -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)