summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-06-21 01:37:09 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2013-06-21 01:37:09 +0200
commitef257e459ed7619b4317435b2292e4c78b866b9d (patch)
tree9ead77c9435f2b0d46478495de17fed23d94176b
parent99b0c52f8dc9fa4e7e037cdd6d4c560b6dacc9d4 (diff)
downloadneard-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.c2
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 {