From: Ethan Jackson Date: Wed, 24 Nov 2010 00:50:57 +0000 (-0800) Subject: ovsdb: constify should apply to all pointer types. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c667d679b050dc16734bfad7de7e794c5774e686;p=openvswitch 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 c6870cc3..41830899 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