# HG changeset patch # User Richard Laager # Date 1180491084 0 # Node ID 98ef77c2455f22ec5ac551aa648d71bc1333511c # Parent 3cdca2d426199f548acdd703ea0d8d5cb5ee9144 Part of a patch from o_sukhodolsky. Make dbus-analyze-functions.py output some_func(void) instead of some_func() so GCC will recognize it as a prototype. References #1344 diff -r 3cdca2d42619 -r 98ef77c2455f libpurple/dbus-analyze-functions.py --- a/libpurple/dbus-analyze-functions.py Wed May 30 02:01:38 2007 +0000 +++ b/libpurple/dbus-analyze-functions.py Wed May 30 02:11:24 2007 +0000 @@ -166,8 +166,11 @@ self.returncode = [] def flush(self): + paramslist = ", ".join(self.paramshdr) + if (paramslist == "") : + paramslist = "void" print "%s %s(%s)" % (self.functiontype, self.function.name, - ", ".join(self.paramshdr)), + paramslist), if self.headersonly: print ";"