agent: Update functions used by wispr to send -EINPROGRESS
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 23 May 2012 12:24:56 +0000 (15:24 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 28 May 2012 07:08:48 +0000 (10:08 +0300)
Handle the change from -EIO to -EINPROGRESS return value in
wispr.c.

src/agent.c
src/wispr.c

index a9c2a33..0aadb21 100644 (file)
@@ -546,7 +546,7 @@ int __connman_agent_request_login_input(struct connman_service *service,
 
        dbus_message_unref(message);
 
-       return -EIO;
+       return -EINPROGRESS;
 }
 
 struct request_browser_reply_data {
@@ -634,7 +634,7 @@ int __connman_agent_request_browser(struct connman_service *service,
 
        dbus_message_unref(message);
 
-       return -EIO;
+       return -EINPROGRESS;
 }
 
 struct report_error_data {
index e5796d7..9412f1e 100644 (file)
@@ -610,7 +610,7 @@ static gboolean wispr_manage_message(GWebResult *result,
 
                if (__connman_agent_request_login_input(wp_context->service,
                                        wispr_portal_request_wispr_login,
-                                       wp_context) != -EIO)
+                                       wp_context) != -EINPROGRESS)
                        wispr_portal_error(wp_context);
 
                break;