projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netdev-linux: Fix strict aliasing warnings.
[openvswitch]
/
ovsdb
/
ovsdb-idlc.in
diff --git
a/ovsdb/ovsdb-idlc.in
b/ovsdb/ovsdb-idlc.in
index e8371aa1d619b68729df109c3c1746cd44116850..4183089950dc57290d748b988eda3e66d0b327b4 100755
(executable)
--- 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):
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
return 'const %s' % cType
else:
return cType
@@
-310,7
+308,7
@@
static void
{
/* Nothing to do. */
}''' % {'s': structName, 'c': columnName}
{
/* Nothing to do. */
}''' % {'s': structName, 'c': columnName}
-
+
# First, next functions.
print '''
const struct %(s)s *
# First, next functions.
print '''
const struct %(s)s *
@@
-566,7
+564,7
@@
if __name__ == "__main__":
except getopt.GetoptError, geo:
sys.stderr.write("%s: %s\n" % (argv0, geo.msg))
sys.exit(1)
except getopt.GetoptError, geo:
sys.stderr.write("%s: %s\n" % (argv0, geo.msg))
sys.exit(1)
-
+
for key, value in options:
if key in ['-h', '--help']:
usage()
for key, value in options:
if key in ['-h', '--help']:
usage()
@@
-576,7
+574,7
@@
if __name__ == "__main__":
os.chdir(value)
else:
sys.exit(0)
os.chdir(value)
else:
sys.exit(0)
-
+
optKeys = [key for key, value in options]
if not args:
optKeys = [key for key, value in options]
if not args: