diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-21 01:37:09 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-21 01:37:09 +0200 |
commit | ef257e459ed7619b4317435b2292e4c78b866b9d (patch) | |
tree | 9ead77c9435f2b0d46478495de17fed23d94176b | |
parent | 99b0c52f8dc9fa4e7e037cdd6d4c560b6dacc9d4 (diff) | |
download | neard-ef257e459ed7619b4317435b2292e4c78b866b9d.tar.gz neard-ef257e459ed7619b4317435b2292e4c78b866b9d.tar.bz2 neard-ef257e459ed7619b4317435b2292e4c78b866b9d.zip |
device: Pass the NDEF push cb status back to the caller
Instead of hard coding it to EINVAL.
-rw-r--r-- | src/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c index 2c5b047..4f4306b 100644 --- a/src/device.c +++ b/src/device.c @@ -184,7 +184,7 @@ static void push_cb(uint32_t adapter_idx, uint32_t target_idx, int status) return; if (status != 0) { - reply = __near_error_failed(device->push_msg, EINVAL); + reply = __near_error_failed(device->push_msg, -status); if (reply != NULL) g_dbus_send_message(conn, reply); } else { |