manager: Fix negative error code
authorDanny Jeongseok Seo <s.seo@samsung.com>
Mon, 12 Nov 2012 11:34:42 +0000 (20:34 +0900)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 13 Nov 2012 12:38:06 +0000 (14:38 +0200)
Fix error code for __connman_error_failed

src/manager.c

index d4f8c3dfca3e4c332ba04b461619017da435a081..8db4f8f7f95f37e2d1920e0987f274b5dc7fe916 100644 (file)
@@ -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);