diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-04-17 20:39:39 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-04-17 20:39:39 +0000 |
commit | 4136e617c4f8ab7dfc3488708c8ba129910dc597 (patch) | |
tree | 1f0ee3cd28d62d1c89de97ee986b83c2c4035138 /input/device.c | |
parent | 4bae43ca784e1c1cb9d6da6b748c93532fc05c00 (diff) |
input: code cleanup/standard
Diffstat (limited to 'input/device.c')
-rw-r--r-- | input/device.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/input/device.c b/input/device.c index 24540ca1..10950785 100644 --- a/input/device.c +++ b/input/device.c @@ -800,10 +800,12 @@ static DBusHandlerResult device_connect(DBusConnection *conn, if (l2cap_connect(&idev->src, &idev->dst, L2CAP_PSM_HIDP_CTRL, (GIOFunc) control_connect_cb, idev) < 0) { - error("L2CAP connect failed: %s(%d)", strerror(errno), errno); + int err = errno; + + error("L2CAP connect failed: %s(%d)", strerror(err), err); pending_connect_free(idev->pending_connect); idev->pending_connect = NULL; - return err_connection_failed(conn, msg, strerror(errno)); + return err_connection_failed(conn, msg, strerror(err)); } return DBUS_HANDLER_RESULT_HANDLED; |