From 4f5de3426e11f6f382a3063cc7d3ce0ec4d52a97 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 5 Apr 2010 16:14:39 -0500 Subject: Refactor: Move packet_ops to a static look-up No need to allocate space for this, as it is always the same for all instances. --- gatchat/ppp_cp.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'gatchat/ppp_cp.h') diff --git a/gatchat/ppp_cp.h b/gatchat/ppp_cp.h index 71d40806..9cba8047 100644 --- a/gatchat/ppp_cp.h +++ b/gatchat/ppp_cp.h @@ -80,8 +80,6 @@ struct pppcp_data { guint8 reject_identifier; struct pppcp_action *action; guint16 valid_codes; - guint8 (*packet_ops[11])(struct pppcp_data *data, - struct pppcp_packet *packet); gpointer priv; guint16 proto; const char *prefix; -- cgit v1.2.3