llc: Make function pointer arrays const

It's better when function pointer arrays aren't modifiable.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tirimbino
Joe Perches 10 years ago committed by David S. Miller
parent b95bf1e0ea
commit 14b7d95fd2
  1. 2
      include/net/llc_c_st.h
  2. 470
      net/llc/llc_c_st.c
  3. 2
      net/llc/llc_conn.c

@ -36,7 +36,7 @@ struct llc_conn_state_trans {
llc_conn_ev_t ev;
u8 next_state;
llc_conn_ev_qfyr_t *ev_qualifiers;
llc_conn_action_t *ev_actions;
const llc_conn_action_t *ev_actions;
};
struct llc_conn_state {

File diff suppressed because it is too large Load Diff

@ -454,7 +454,7 @@ static int llc_exec_conn_trans_actions(struct sock *sk,
struct sk_buff *skb)
{
int rc = 0;
llc_conn_action_t *next_action;
const llc_conn_action_t *next_action;
for (next_action = trans->ev_actions;
next_action && *next_action; next_action++) {

Loading…
Cancel
Save