qapi: Tidy c_type() logic
commitd557344628e32771f07e5b6a2a818ee3d8e7a65f
authorEric Blake <eblake@redhat.com>
Thu, 14 May 2015 12:50:54 +0000 (14 06:50 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 14 May 2015 16:21:03 +0000 (14 18:21 +0200)
tree498b539e72a7b9086b1070e30aa4fb12738a60cb
parent849bc5382e42b3b9590c6a50ba30c2fd2450308c
qapi: Tidy c_type() logic

c_type() is designed to be called on both string names and on
array designations, so 'name' is a bit misleading because it
operates on more than strings.  Also, no caller ever passes
an empty string.  Finally, + notation is a bit nicer to read
than '%s' % value for string concatenation.

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi.py