aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2018-12-12 12:57:32 +0100
committerOle Trøan <otroan@employees.org>2018-12-13 08:03:01 +0000
commit173e20ceaee6222570ef35f96bda1edd33444cb0 (patch)
treebc9fc23425a6524b9a80ccfcbccb965bb2a5d0b5 /src
parent51edc3ab01e0af58d457da97bf6ca9cc3ebc6b8d (diff)
vapi: code cleanup
Change-Id: If3bdb4369d6055e06a9b29bcba37785dbd32eb71 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/vpp-api/vapi/vapi_c_gen.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/vpp-api/vapi/vapi_c_gen.py b/src/vpp-api/vapi/vapi_c_gen.py
index 490b83028da..381dcba7f42 100755
--- a/src/vpp-api/vapi/vapi_c_gen.py
+++ b/src/vpp-api/vapi/vapi_c_gen.py
@@ -104,12 +104,11 @@ class CAlias(CField):
def get_c_def(self):
if self.len is not None:
- return "typedef %s vapi_type_%s[%d];" % (self.type.get_c_name(), self.name, self.len)
+ return "typedef %s vapi_type_%s[%d];" % (
+ self.type.get_c_name(), self.name, self.len)
else:
- return "typedef %s vapi_type_%s;" % (self.type.get_c_name(), self.name)
- #return "typedef %s" % super(CAlias, self).get_c_def()
-
- # def needs_byte_swap
+ return "typedef %s vapi_type_%s;" % (
+ self.type.get_c_name(), self.name)
class CStruct(Struct):