]> git.meshlink.io Git - catta/blobdiff - avahi-utils/avahi-resolve-address.in
* many trivial fix to make avahi compile on OpenBSD
[catta] / avahi-utils / avahi-resolve-address.in
index a645bbd0352c541e3b329832cc9c09670f7e9b6c..0c39b4abc036467d9b2c88a5dba3a422b55db14f 100755 (executable)
@@ -44,7 +44,7 @@ ret = 0
 
 for a in sys.argv[1:]:
     try:
-        r = server.ResolveAddress(avahi.IF_UNSPEC, avahi.PROTO_UNSPEC, a, 0)
+        r = server.ResolveAddress(avahi.IF_UNSPEC, avahi.PROTO_UNSPEC, a, dbus.UInt32(0))
         print r[3], r[4]
     except dbus.DBusException, e:
         print "Resolving '%s' failed: %s" % (a, str(e))