dbus: fix the string RPC calls
This commit is contained in:
parent
da4574d393
commit
1376a005f7
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue