[PATCH] manager: Fix negative error code

Danny Jeongseok Seo s.seo at samsung.com
Mon Nov 12 03:34:42 PST 2012


Fix error code for __connman_error_failed
---
 src/manager.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/manager.c b/src/manager.c
index d4f8c3d..8db4f8f 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -229,7 +229,7 @@ static DBusMessage *connect_provider(DBusConnection *conn,
 		connman_info("Session mode enabled: "
 				"direct provider connect disabled");
 
-		return __connman_error_failed(msg, -EINVAL);
+		return __connman_error_failed(msg, EINVAL);
 	}
 
 	err = __connman_provider_create_and_connect(msg);
-- 
1.7.10.4




More information about the connman mailing list