aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rlc.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2012-08-09 17:13:44 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2012-08-09 17:13:44 +0000
commitabe8b14347fd11cca257818aa3d17d4d36ea5b85 (patch)
tree7386759d0d77cc7f9a447649294f5fe0f1209e1e /epan/dissectors/packet-rlc.c
parent8aa18167de05cae0bce5aa830c9a84dc42893dc4 (diff)
Mark parameters as unused when we don't have kasumi.
Cast the result of strlen to int. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44388 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-rlc.c')
-rw-r--r--epan/dissectors/packet-rlc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-rlc.c b/epan/dissectors/packet-rlc.c
index 28ac61c5dc..bbf0fd0f32 100644
--- a/epan/dissectors/packet-rlc.c
+++ b/epan/dissectors/packet-rlc.c
@@ -1955,9 +1955,9 @@ translate_hex_key(gchar * char_key){
key_in = g_malloc0(sizeof(guint8)*16);
/*memset(key_in,0,16);
*/
- j= (strlen(char_key)/2)-1;
+ j= (int)(strlen(char_key)/2)-1;
/*Translate "hex-string" into a byte aligned block */
- for(i = strlen(char_key); i> 0; i-=2 ){
+ for(i = (int)strlen(char_key); i> 0; i-=2 ){
key_in[j] = ( (guint8) (strtol( &char_key[i-2], NULL, 16 ) ));
char_key[i-2] = '\0';
@@ -1982,12 +1982,13 @@ translate_hex_key(gchar * char_key){
* @return tvb Returns a deciphered tvb
*/
-static tvbuff_t * rlc_decipher_tvb(tvbuff_t * tvb, packet_info * pinfo , guint32 counter , guint8 rbid ,gboolean dir ){
#if !HAVE_UMTS_KASUMI
+static tvbuff_t * rlc_decipher_tvb(tvbuff_t * tvb _U_, packet_info * pinfo , guint32 counter _U_ , guint8 rbid _U_,gboolean dir _U_ ){
/*Check if we have a KASUMI implementatation*/
expert_add_info_format(pinfo, NULL, PI_UNDECODED, PI_WARN, "Unable to decipher packet since KASUMI implementation is missing.");
return NULL;
#else
+static tvbuff_t * rlc_decipher_tvb(tvbuff_t * tvb, packet_info * pinfo , guint32 counter , guint8 rbid ,gboolean dir ){
guint64 i;
guint8* out=NULL,*key_in = NULL;
tvbuff_t *t;