summaryrefslogtreecommitdiffstats
path: root/python_modules
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-06-28 12:45:07 +0200
committerAlexander Larsson <alexl@redhat.com>2010-06-28 12:45:07 +0200
commitb08b80d13ff8a6822364e792391473dc53913dca (patch)
treebe31ecfdbfd598c1954f30fd5273481562e81eb9 /python_modules
parent897e5633c2d4e0d8fe91986b6e030dd1436b8fa8 (diff)
downloadspice-b08b80d13ff8a6822364e792391473dc53913dca.tar.gz
spice-b08b80d13ff8a6822364e792391473dc53913dca.tar.xz
spice-b08b80d13ff8a6822364e792391473dc53913dca.zip
Fix build error due to member "SpiceMsgEmpty" same name as type
Diffstat (limited to 'python_modules')
-rw-r--r--python_modules/marshal.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python_modules/marshal.py b/python_modules/marshal.py
index ef1a47c2..1eb36751 100644
--- a/python_modules/marshal.py
+++ b/python_modules/marshal.py
@@ -369,6 +369,8 @@ def write_protocol_marshaller(writer, proto, is_server, private_marshallers):
writer.writeln("static SpiceMessageMarshallers marshallers = {NULL};").newline()
for f in sorted(functions.keys()):
member = f[len("spice_marshall_"):]
+ if not member.startswith("msg"):
+ member = "msg_" + member
writer.assign("marshallers.%s" % member, f)
writer.newline()