summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-05-10 13:37:51 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-05-10 13:37:51 +0000
commite26377ac2dec7905881b1c062795b7057de91c18 (patch)
treeb226476895d786d1b6e4fe74a81f6d0ca6a28bbb
parent8ee70afdcabbe9a105869a1b488a7c59fab4cc5c (diff)
serial: fixed returned error value for DisconnectService
-rw-r--r--serial/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/serial/manager.c b/serial/manager.c
index 0c2baba9..5f6ad065 100644
--- a/serial/manager.c
+++ b/serial/manager.c
@@ -886,7 +886,7 @@ static DBusHandlerResult disconnect_service(DBusConnection *conn,
err = rfcomm_release(node->id);
if (err < 0) {
dbus_message_unref(reply);
- return err_failed(conn, msg, strerror(err));
+ return err_failed(conn, msg, strerror(-err));
}
dbus_connection_emit_signal(conn, SERIAL_MANAGER_PATH,