Extend the switch statement.

svn path=/trunk/; revision=42879
This commit is contained in:
Anders Broman 2012-05-28 15:09:33 +00:00
parent d52a12c60e
commit 55261641d9
2 changed files with 9 additions and 4 deletions

View file

@ -6557,7 +6557,7 @@ enum TransportFormatSet_type_enum
DCH_DL,
CPCH,
FACH,
PCH,
PCH
};
enum TransportFormatSet_type_enum transportFormatSet_type;

View file

@ -1047,9 +1047,14 @@ rlc_decode_li(enum rlc_mode mode, tvbuff_t *tvb, packet_info *pinfo, proto_tree
guint16 total_len;
switch (mode) {
case RLC_AM: offs = 1; break;
case RLC_UM: offs = 0; break;
case RLC_TM: return -1;
case RLC_AM: offs = 1;
break;
case RLC_UM: offs = 0;
break;
case RLC_TM:
/* fall trough */
case RLC_MODE_UNKNOWN:
return -1;
}
hdr_len = offs;
/* calculate header length */