提交 14b7d95f 编写于 作者: J Joe Perches 提交者: David S. Miller

llc: Make function pointer arrays const

It's better when function pointer arrays aren't modifiable.
Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b95bf1e0
...@@ -36,7 +36,7 @@ struct llc_conn_state_trans { ...@@ -36,7 +36,7 @@ struct llc_conn_state_trans {
llc_conn_ev_t ev; llc_conn_ev_t ev;
u8 next_state; u8 next_state;
llc_conn_ev_qfyr_t *ev_qualifiers; llc_conn_ev_qfyr_t *ev_qualifiers;
llc_conn_action_t *ev_actions; const llc_conn_action_t *ev_actions;
}; };
struct llc_conn_state { struct llc_conn_state {
......
此差异已折叠。
...@@ -454,7 +454,7 @@ static int llc_exec_conn_trans_actions(struct sock *sk, ...@@ -454,7 +454,7 @@ static int llc_exec_conn_trans_actions(struct sock *sk,
struct sk_buff *skb) struct sk_buff *skb)
{ {
int rc = 0; int rc = 0;
llc_conn_action_t *next_action; const llc_conn_action_t *next_action;
for (next_action = trans->ev_actions; for (next_action = trans->ev_actions;
next_action && *next_action; next_action++) { next_action && *next_action; next_action++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册