device: Pass the NDEF push cb status back to the caller
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 20 Jun 2013 23:37:09 +0000 (01:37 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 20 Jun 2013 23:37:09 +0000 (01:37 +0200)
Instead of hard coding it to EINVAL.

src/device.c

index 2c5b047..4f4306b 100644 (file)
@@ -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 {