diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-05-05 13:12:28 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-05-05 13:12:28 +0000 |
commit | d584577564a1c05ce938493f342ec5dc74a7bca6 (patch) | |
tree | c021f4690a3680dda32614401fb8762e24c1d61b /serial/manager.c | |
parent | e5efdf9f53353ad7b8e704c4b7ed42d1052ece82 (diff) |
serial: fixed wrong error value
Diffstat (limited to 'serial/manager.c')
-rw-r--r-- | serial/manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serial/manager.c b/serial/manager.c index eb49f8e9..e03e9b01 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -359,8 +359,8 @@ static void rfcomm_connect_cb(GIOChannel *chan, int err_cb, gpointer user_data) } if (err_cb < 0) { - error("connect(): %s (%d)", strerror(err_cb), err_cb); - error_connection_attempt_failed(pc->conn, pc->msg, err_cb); + error("connect(): %s (%d)", strerror(-err_cb), -err_cb); + error_connection_attempt_failed(pc->conn, pc->msg, -err_cb); goto fail; } |