summaryrefslogtreecommitdiffstats
path: root/gatchat/gatppp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gatchat/gatppp.c')
-rw-r--r--gatchat/gatppp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index 8f196364..7afff531 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -49,10 +49,13 @@ void g_at_ppp_set_credentials(GAtPPP *ppp, const char *username,
auth_set_credentials(ppp->auth, username, passwd);
}
-void g_at_ppp_set_connect_function(GAtPPP *ppp,
- GAtPPPConnectFunc callback, gpointer user_data)
+void g_at_ppp_set_connect_function(GAtPPP *ppp, GAtPPPConnectFunc func,
+ gpointer user_data)
{
- ppp->connect_cb = callback;
+ if (func == NULL)
+ return;
+
+ ppp->connect_cb = func;
ppp->connect_data = user_data;
}