Add preventative breaks to case statement

Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
This commit is contained in:
Viktor Krykun 2012-06-15 10:23:13 +03:00 committed by Travis Cross
parent 272b36d04b
commit 551938b89b
1 changed files with 5 additions and 0 deletions

View File

@ -1093,6 +1093,7 @@ char* zrtp_comp_id2type(zrtp_crypto_comp_t type, uint8_t id)
case ZRTP_HASH_SHA384: return ZRTP_S384; case ZRTP_HASH_SHA384: return ZRTP_S384;
default: return "Unkn"; default: return "Unkn";
} }
break;
case ZRTP_CC_SAS: case ZRTP_CC_SAS:
switch (id) switch (id)
@ -1101,6 +1102,7 @@ char* zrtp_comp_id2type(zrtp_crypto_comp_t type, uint8_t id)
case ZRTP_SAS_BASE256: return ZRTP_B256; case ZRTP_SAS_BASE256: return ZRTP_B256;
default: return "Unkn"; default: return "Unkn";
} }
break;
case ZRTP_CC_CIPHER: case ZRTP_CC_CIPHER:
switch (id) switch (id)
@ -1109,6 +1111,7 @@ char* zrtp_comp_id2type(zrtp_crypto_comp_t type, uint8_t id)
case ZRTP_CIPHER_AES256: return ZRTP_AES3; case ZRTP_CIPHER_AES256: return ZRTP_AES3;
default: return "Unkn"; default: return "Unkn";
} }
break;
case ZRTP_CC_PKT: case ZRTP_CC_PKT:
switch (id) switch (id)
@ -1122,6 +1125,7 @@ char* zrtp_comp_id2type(zrtp_crypto_comp_t type, uint8_t id)
case ZRTP_PKTYPE_EC521P: return ZRTP_EC521P; case ZRTP_PKTYPE_EC521P: return ZRTP_EC521P;
default: return "Unkn"; default: return "Unkn";
} }
break;
case ZRTP_CC_ATL: case ZRTP_CC_ATL:
switch (id) switch (id)
@ -1130,6 +1134,7 @@ char* zrtp_comp_id2type(zrtp_crypto_comp_t type, uint8_t id)
case ZRTP_ATL_HS80: return ZRTP_HS80; case ZRTP_ATL_HS80: return ZRTP_HS80;
default: return "Unkn"; default: return "Unkn";
} }
break;
default: default:
return "Unkn"; return "Unkn";