error_reply expects non-negative error code. --- plugins/neard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/neard.c b/plugins/neard.c index 380eddc..a68500a 100644 --- a/plugins/neard.c +++ b/plugins/neard.c @@ -636,7 +636,7 @@ static DBusMessage *push_oob(DBusConnection *conn, DBusMessage *msg, void *data) agent = adapter_get_agent(adapter); if (!agent) - return error_reply(msg, -ENONET); + return error_reply(msg, ENONET); io_cap = agent_get_io_capability(agent); agent_unref(agent); -- 1.8.1.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html