summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp_cp.h
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-04-05 14:25:14 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-04-05 14:25:14 -0500
commit5e8a9c29414fb7d9d59a25f6d9e8d523baac95cc (patch)
treecb82445eda2165ad76c106a2c8b2844440d36869 /gatchat/ppp_cp.h
parent60d96505dce4f11da7c307b03557a6f2ee8c139d (diff)
downloadofono-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_cp.h')
-rw-r--r--gatchat/ppp_cp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gatchat/ppp_cp.h b/gatchat/ppp_cp.h
index acd5329e..2cbda54b 100644
--- a/gatchat/ppp_cp.h
+++ b/gatchat/ppp_cp.h
@@ -42,7 +42,8 @@ struct pppcp_action {
void (*this_layer_finished)(struct pppcp_data *data);
enum option_rval (*option_scan)(struct ppp_option *option,
gpointer user_data);
- void (*option_process)(gpointer option, gpointer user_data);
+ void (*option_process)(struct pppcp_data *data,
+ struct ppp_option *option);
};
struct pppcp_packet {