diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2013-01-29 09:54:30 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-01-29 15:57:27 -0600 |
commit | e5b216061bdd60adc95431e593bb4c36f99beda8 (patch) | |
tree | 479035cc509f44aa82898baa2f0c8937107f215c /plugins/neard.c | |
parent | 83400b1009ec0d62b5ba2805ed1d6189ed7b8678 (diff) | |
download | bluez-e5b216061bdd60adc95431e593bb4c36f99beda8.tar.gz |
neard: Fix passing negative error code to strerror
error_reply expects non-negative error code.
Diffstat (limited to 'plugins/neard.c')
-rw-r--r-- | plugins/neard.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |