]> err.no Git - linux-2.6/commit
[DCCP]: Introduce DCCP_{BUG{_ON},CRIT} macros, use enum:8 for the ccid3 states
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Wed, 15 Nov 2006 23:27:47 +0000 (21:27 -0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:23:49 +0000 (21:23 -0800)
commit3c6952624a8f600f9a0fbc1f5db5560a7ef9b13e
tree294924e950000cd786b0cdaf026ed58b2f81102d
parent6bb100b9fc8f1ce330231b360028ab705a9f0378
[DCCP]: Introduce DCCP_{BUG{_ON},CRIT} macros, use enum:8 for the ccid3 states

This patch tackles the following problem:
       * the ccid3_hc_{t,r}x_sock define ccid3hc{t,r}x_state as `u8', but
         in reality there can only be a few, pre-defined enum names
       * this necessitates addiditional checking for unexpected values
         which would otherwise be caught by the compiler

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
net/dccp/ccids/ccid3.c
net/dccp/ccids/ccid3.h
net/dccp/dccp.h