diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-04-05 14:25:14 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-04-05 14:25:14 -0500 |
commit | 5e8a9c29414fb7d9d59a25f6d9e8d523baac95cc (patch) | |
tree | cb82445eda2165ad76c106a2c8b2844440d36869 /gatchat/ppp_lcp.c | |
parent | 60d96505dce4f11da7c307b03557a6f2ee8c139d (diff) | |
download | ofono-5e8a9c29414fb7d9d59a25f6d9e8d523baac95cc.tar.bz2 |
Refactor: Make option_process more typesafe
option_process was declared with two gpointer arguments for the sole
reason of being used as a GFunc. Casting to a GFunc or re-writing the
foreach as a loop is preferable.
Diffstat (limited to 'gatchat/ppp_lcp.c')
-rw-r--r-- | gatchat/ppp_lcp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gatchat/ppp_lcp.c b/gatchat/ppp_lcp.c index aee7b104..7dab019b 100644 --- a/gatchat/ppp_lcp.c +++ b/gatchat/ppp_lcp.c @@ -107,10 +107,9 @@ static guint lcp_option_scan(struct ppp_option *option, gpointer user) * We need to use a default case here because this option type value * could be anything. */ -static void lcp_option_process(gpointer data, gpointer user) +static void lcp_option_process(struct pppcp_data *pppcp, + struct ppp_option *option) { - struct ppp_option *option = data; - struct pppcp_data *pppcp = user; GAtPPP *ppp = pppcp->ppp; guint32 magic; |