aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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):