gsmdial: Update to new API
authorDenis Kenzior <denkenz@gmail.com>
Tue, 24 May 2011 16:11:59 +0000 (11:11 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 24 May 2011 17:25:07 +0000 (12:25 -0500)
gatchat/gsmdial.c

index a10e7cb..f8a980a 100644 (file)
@@ -312,7 +312,7 @@ static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data)
        g_at_chat_suspend(modem);
 
        /* open ppp */
-       ppp = g_at_ppp_new_from_io(io);
+       ppp = g_at_ppp_new();
        if (ppp == NULL) {
                g_print("Unable to create PPP object\n");
                exit(1);
@@ -329,7 +329,7 @@ static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data)
        g_at_ppp_set_disconnect_function(ppp, ppp_disconnect, NULL);
 
        /* open the ppp connection */
-       g_at_ppp_open(ppp);
+       g_at_ppp_open(ppp, io);
 }
 
 static void at_cgdcont_cb(gboolean ok, GAtResult *result, gpointer user_data)