summaryrefslogtreecommitdiffstats
path: root/gatchat/gatppp.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-06-29 11:49:40 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-06-29 11:49:40 -0500
commitd7c06404127f9e235e315dda87b343c461585678 (patch)
treee2f10296abaada2488ab78e0af37f2185b39fa19 /gatchat/gatppp.c
parent295270b4be076338c2b90224327d707da868f7f2 (diff)
downloadofono-d7c06404127f9e235e315dda87b343c461585678.tar.bz2
ppp: Tweak set_server_info API some more
Diffstat (limited to 'gatchat/gatppp.c')
-rw-r--r--gatchat/gatppp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index 1f5b581d..e7a9f19a 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -465,21 +465,18 @@ void g_at_ppp_unref(GAtPPP *ppp)
g_free(ppp);
}
-void g_at_ppp_set_server_info(GAtPPP *ppp,
- const char *local, const char *remote,
+void g_at_ppp_set_server_info(GAtPPP *ppp, const char *remote,
const char *dns1, const char *dns2)
{
- guint32 l = 0;
guint32 r = 0;
guint32 d1 = 0;
guint32 d2 = 0;
- inet_pton(AF_INET, local, &l);
inet_pton(AF_INET, remote, &r);
inet_pton(AF_INET, dns1, &d1);
inet_pton(AF_INET, dns2, &d2);
- ipcp_set_server_info(ppp->ipcp, l, r, d1, d2);
+ ipcp_set_server_info(ppp->ipcp, r, d1, d2);
}
static GAtPPP *ppp_init_common(GAtHDLC *hdlc)