X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=blobdiff_plain;f=net%2Fdccp%2Finput.c;fp=net%2Fdccp%2Finput.c;h=fa6be9750bb46d9aeee2462fa86ed1a7cfc40cd1;hp=4a05d78768502df69275b4f91cb03bb2ada9f4c3;hb=5e349fc03cdd44c670aaf3affaa6f0426c5e553f;hpb=bf98bd0be1ba509c5e6d77524ffac192f1edb2dd diff --git a/net/dccp/input.c b/net/dccp/input.c index 4a05d7876850..fa6be9750bb4 100644 --- a/net/dccp/input.c +++ b/net/dccp/input.c @@ -126,7 +126,7 @@ static int dccp_rcv_closereq(struct sock *sk, struct sk_buff *skb) static u16 dccp_reset_code_convert(const u8 code) { - const u16 error_code[] = { + static const u16 error_code[] = { [DCCP_RESET_CODE_CLOSED] = 0, /* normal termination */ [DCCP_RESET_CODE_UNSPECIFIED] = 0, /* nothing known */ [DCCP_RESET_CODE_ABORTED] = ECONNRESET,