chiark / gitweb /
sd-bus: sync kdbus.h (API+ABI break)
[elogind.git] / src / libsystemd / sd-bus / sd-bus.c
index 83b3aa1c3c46837f325c72047ab45fc1be3e6252..28b993b7ba42b783d43b2df5839d49b1e86084f1 100644 (file)
@@ -349,8 +349,6 @@ static int hello_callback(sd_bus *bus, sd_bus_message *reply, void *userdata, sd
         assert(reply);
 
         r = sd_bus_message_get_errno(reply);
-        if (r < 0)
-                return r;
         if (r > 0)
                 return -r;
 
@@ -1756,7 +1754,7 @@ _public_ int sd_bus_call_async(
         if (!BUS_IS_OPEN(bus->state))
                 return -ENOTCONN;
 
-        r = hashmap_ensure_allocated(&bus->reply_callbacks, uint64_hash_func, uint64_compare_func);
+        r = hashmap_ensure_allocated(&bus->reply_callbacks, &uint64_hash_ops);
         if (r < 0)
                 return r;