From: Ethan Jackson Date: Wed, 24 Nov 2010 00:50:57 +0000 (-0800) Subject: ovsdb: constify should apply to all pointer types. X-Git-Tag: v1.1.0~810 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c667d679b050dc16734bfad7de7e794c5774e686;p=sliver-openvswitch.git ovsdb: constify should apply to all pointer types. All pointers (except double stars) should be const-able in ovsdb-idlc.in generated header files. --- diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in index c6870cc3a..418308995 100755 --- a/ovsdb/ovsdb-idlc.in +++ b/ovsdb/ovsdb-idlc.in @@ -20,9 +20,7 @@ def annotateSchema(schemaFile, annotationFile): ovs.json.to_stream(schemaJson, sys.stdout) def constify(cType, const): - if (const - and cType.endswith('*') and not cType.endswith('**') - and (cType.startswith('struct uuid') or cType.startswith('char'))): + if (const and cType.endswith('*') and not cType.endswith('**')): return 'const %s' % cType else: return cType