summaryrefslogtreecommitdiff
path: root/asn1/credssp
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-03-03 21:22:25 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-03-03 21:22:25 +0000
commit04ec1e0984303c54067558c4a96f495770f0f1e7 (patch)
tree4f510fc42e354c3e3bd2fbdd2cc5ce8b368838e3 /asn1/credssp
parenta79e5d5b94b771c44d5918ecbdde3945b72fb1fb (diff)
downloadwireshark-04ec1e0984303c54067558c4a96f495770f0f1e7.tar.gz
Use explicit casts.
svn path=/trunk/; revision=48043
Diffstat (limited to 'asn1/credssp')
-rw-r--r--asn1/credssp/packet-credssp-template.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/asn1/credssp/packet-credssp-template.c b/asn1/credssp/packet-credssp-template.c
index 7fc7c8dcff..f4db923051 100644
--- a/asn1/credssp/packet-credssp-template.c
+++ b/asn1/credssp/packet-credssp-template.c
@@ -83,7 +83,7 @@ dissect_credssp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree,
{
asn1_ctx_t asn1_ctx;
int offset = 0;
- gint8 class;
+ gint8 ber_class;
gboolean pc;
gint32 tag;
guint32 length;
@@ -92,14 +92,14 @@ dissect_credssp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree,
/* Look for SEQUENCE, CONTEXT 0, and INTEGER 2 */
if(tvb_length(tvb) > 7) {
- offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
- if((class == BER_CLASS_UNI) && (tag == BER_UNI_TAG_SEQUENCE) && (pc == TRUE)) {
+ offset = get_ber_identifier(tvb, offset, &ber_class, &pc, &tag);
+ if((ber_class == BER_CLASS_UNI) && (tag == BER_UNI_TAG_SEQUENCE) && (pc == TRUE)) {
offset = get_ber_length(tvb, offset, NULL, NULL);
- offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
- if((class == BER_CLASS_CON) && (tag == 0)) {
+ offset = get_ber_identifier(tvb, offset, &ber_class, &pc, &tag);
+ if((ber_class == BER_CLASS_CON) && (tag == 0)) {
offset = get_ber_length(tvb, offset, NULL, NULL);
- offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
- if((class == BER_CLASS_UNI) && (tag == BER_UNI_TAG_INTEGER)) {
+ offset = get_ber_identifier(tvb, offset, &ber_class, &pc, &tag);
+ if((ber_class == BER_CLASS_UNI) && (tag == BER_UNI_TAG_INTEGER)) {
offset = get_ber_length(tvb, offset, &length, NULL);
if((length == 1) && (tvb_get_guint8(tvb, offset) == 2)) {
dissect_credssp(tvb, pinfo, parent_tree);