diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-03-22 19:13:22 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-03-22 19:13:22 -0700 |
commit | abbd1640f4351bee8a6125b08ae11964243b299e (patch) | |
tree | 3c8dbf6e4c72e777940ce85646c6033327e3f3e0 /gatchat/ppp.c | |
parent | b8d0001f6f5e366a5d9dc2bcd9c449105751bd8d (diff) | |
download | ofono-abbd1640f4351bee8a6125b08ae11964243b299e.tar.bz2 |
Fix pointer casting with uint16 protocol variable
Diffstat (limited to 'gatchat/ppp.c')
-rw-r--r-- | gatchat/ppp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gatchat/ppp.c b/gatchat/ppp.c index de0d5ab7..a9972d4a 100644 --- a/gatchat/ppp.c +++ b/gatchat/ppp.c @@ -184,15 +184,14 @@ static gint is_proto_handler(gconstpointer a, gconstpointer b) /* called when we have received a complete ppp frame */ static void ppp_recv(GAtPPP *ppp) { - guint16 protocol; - guint8 *frame, *packet; GList *list; - struct ppp_packet_handler *h; + guint8 *frame; /* pop frames off of receive queue */ while ((frame = g_queue_pop_head(ppp->recv_queue))) { - protocol = ppp_proto(frame); - packet = ppp_info(frame); + guint protocol = ppp_proto(frame); + guint8 *packet = ppp_info(frame); + struct ppp_packet_handler *h; /* * check to see if we have a protocol handler |