summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp_auth.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-04-28 15:29:55 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-04-28 17:27:35 -0500
commit87340d64e2bd8b783f5bc434be8a4300fcf109a8 (patch)
treec5035074dd8cb24e25e0b7123887357888afcf58 /gatchat/ppp_auth.c
parent955673573b1ff657e89daa5f1e60a20737f6a7a2 (diff)
downloadofono-87340d64e2bd8b783f5bc434be8a4300fcf109a8.tar.bz2
ppp: Make ppp_chap_process_packet const correct
Diffstat (limited to 'gatchat/ppp_auth.c')
-rw-r--r--gatchat/ppp_auth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gatchat/ppp_auth.c b/gatchat/ppp_auth.c
index 57203ab6..6e55297c 100644
--- a/gatchat/ppp_auth.c
+++ b/gatchat/ppp_auth.c
@@ -54,9 +54,9 @@ enum chap_code {
FAILURE
};
-static void chap_process_challenge(struct ppp_chap *chap, guint8 *packet)
+static void chap_process_challenge(struct ppp_chap *chap, const guint8 *packet)
{
- struct chap_header *header = (struct chap_header *) packet;
+ const struct chap_header *header = (const struct chap_header *) packet;
struct chap_header *response;
GChecksum *checksum;
const char *secret = g_at_ppp_get_password(chap->ppp);
@@ -111,7 +111,7 @@ challenge_out:
/*
* parse the packet
*/
-void ppp_chap_process_packet(struct ppp_chap *chap, guint8 *new_packet)
+void ppp_chap_process_packet(struct ppp_chap *chap, const guint8 *new_packet)
{
guint8 code = new_packet[0];