From: Szymon Janc Date: Tue, 29 Jan 2013 08:54:30 +0000 (+0100) Subject: neard: Fix passing negative error code to strerror X-Git-Tag: android-x86-4.4-r3~8607 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e5b216061bdd60adc95431e593bb4c36f99beda8;p=android-x86%2Fexternal-bluetooth-bluez.git neard: Fix passing negative error code to strerror error_reply expects non-negative error code. --- diff --git a/plugins/neard.c b/plugins/neard.c index 380eddc78..a68500adb 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);