diff options
-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 |