diff --git a/src/dbus.c b/src/dbus.c index 55489873..c5eaf3b5 100644 --- a/src/dbus.c +++ b/src/dbus.c @@ -243,8 +243,8 @@ dbus_reply_to_rpc(dbus_rpc_t *rpc, DBusMessage *msg, DBusConnection *conn) reply = dbus_message_new_method_return(msg); dbus_message_iter_init_append(reply, &args); dbus_message_iter_append_basic(&args, DBUS_TYPE_INT64, ¶m_s64); - } else if (rpc->rpc_s64) { - if (DBUS_TYPE_INT64 != dbus_message_iter_get_arg_type(&args)) + } else if (rpc->rpc_str) { + if (DBUS_TYPE_STRING != dbus_message_iter_get_arg_type(&args)) return; dbus_message_iter_get_basic(&args, ¶m_str); param_str = rpc->rpc_str(rpc->opaque, path, param_str); diff --git a/src/subscriptions.c b/src/subscriptions.c index 6c837fb1..66e5a43d 100644 --- a/src/subscriptions.c +++ b/src/subscriptions.c @@ -346,7 +346,7 @@ subscription_set_postpone(void *aux, const char *path, int64_t postpone) th_subscription_t *s; time_t now = time(NULL); - if (strcmp(path, "set")) + if (strcmp(path, "/set")) return -1; /* some limits that make sense */ if (postpone < 0)