diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2012-08-09 20:08:08 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2012-08-09 20:08:08 +0000 |
commit | 10f32a3b7fcda87cfd8cc61fe9b1ed793878fba3 (patch) | |
tree | 21ee03bfd070b9939e230a355d70b91761a2b026 /epan/dissectors/packet-rlc.c | |
parent | 1c1db865f64de1004571abd8d377b912a1b13476 (diff) |
Not usre if this makes sense. At least the compiler doesn't complain
anymore.
svn path=/trunk/; revision=44399
Diffstat (limited to 'epan/dissectors/packet-rlc.c')
-rw-r--r-- | epan/dissectors/packet-rlc.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/epan/dissectors/packet-rlc.c b/epan/dissectors/packet-rlc.c index 72f344b92c..8338dfef87 100644 --- a/epan/dissectors/packet-rlc.c +++ b/epan/dissectors/packet-rlc.c @@ -1990,8 +1990,8 @@ static tvbuff_t * #ifndef HAVE_UMTS_KASUMI 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; + expert_add_info_format(pinfo, NULL, PI_UNDECODED, PI_WARN, "Unable to decipher packet since KASUMI implementation is missing."); + return NULL; #else rlc_decipher_tvb(tvbuff_t *tvb, packet_info *pinfo, guint32 counter, guint8 rbid, gboolean dir) { guint64 i; @@ -1999,7 +1999,7 @@ rlc_decipher_tvb(tvbuff_t *tvb, packet_info *pinfo, guint32 counter, guint8 rbid tvbuff_t *t; int off = 0; - /*Fix the key into a byte block*/ + /*Fix the key into a byte block*/ /*TODO: This should be done in a preferences callback function*/ out = g_malloc0( strlen(global_rlc_kasumi_key)+1); memcpy(out,global_rlc_kasumi_key,strlen(global_rlc_kasumi_key)); /*Copy from prefrence const pointer*/ @@ -2028,33 +2028,33 @@ rlc_decipher_tvb(tvbuff_t *tvb, packet_info *pinfo, guint32 counter, guint8 rbid add_new_data_source(pinfo, t, "Deciphered data"); return t; #endif /* HAVE_UMTS_KASUMI */ - } - - -gboolean iter_same(gpointer key, gpointer value, gpointer data ){ +} +gboolean +iter_same(gpointer key, gpointer value, gpointer data) { /*If true we found the correct frame*/ - if( (int)key > (int) data ){ - *((int*)data) = *(guint32*)value; + if (*(int *)key > *(int *)data){ + *((int*)data) = *(guint32 *)value; return TRUE; } - *((int*)data) = (int)key; - + *((int *)data) = *(int *)key; + return TRUE; } /** * Used for looking up and old ciphering counter value in the counter_map tree. */ -gboolean rlc_find_old_counter(gpointer key, gpointer value, gpointer data ){ +gboolean +rlc_find_old_counter(gpointer key, gpointer value, gpointer data) { /*If true we found the correct frame*/ - if( (guint32)key >= ((guint32*)data)[0] ){ + if( *(guint32 *)key >= ((guint32 *)data)[0] ){ return TRUE; } /*Overwrite the data since the previous one wasn't correct*/ ((guint32*)data)[1] = ((guint32*)value)[0]; - ((guint32*)data)[2] = ((guint32*)value)[1]; + ((guint32*)data)[2] = ((guint32*)value)[1]; return FALSE; } |