From: Laszlo Ersek <ler...@redhat.com> (Long line folded using parens: <http://www.python.org/dev/peps/pep-0008/#maximum-line-length>.)
Signed-off-by: Laszlo Ersek <ler...@redhat.com> Signed-off-by: Stefan Hajnoczi <stefa...@linux.vnet.ibm.com> --- scripts/qapi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/qapi.py b/scripts/qapi.py index e062336..1292476 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -159,6 +159,10 @@ def c_type(name): return 'char *' elif name == 'int': return 'int64_t' + elif (name == 'int8' or name == 'int16' or name == 'int32' or + name == 'int64' or name == 'uint8' or name == 'uint16' or + name == 'uint32' or name == 'uint64'): + return name + '_t' elif name == 'bool': return 'bool' elif name == 'number': -- 1.7.10.4