From c667d679b050dc16734bfad7de7e794c5774e686 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Tue, 23 Nov 2010 16:50:57 -0800 Subject: [PATCH] ovsdb: constify should apply to all pointer types. All pointers (except double stars) should be const-able in ovsdb-idlc.in generated header files. --- ovsdb/ovsdb-idlc.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.30.2