From 59932f27227c4769be94fb46936d123d1770c1a2 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 2 Dec 2002 23:43:30 +0000 Subject: Don't cast away constness, and fix variable and structure member qualifiers as necessary to ensure that we don't have to. "strcmp()", "strcasecmp()", and "memcmp()" don't return booleans; don't test their results as if they did. Use "guint8", not "guchar", for a pointer to (one or more) 8-bit bytes. Update Michael Tuexen's e-mail address. svn path=/trunk/; revision=6726 --- packet-radius.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packet-radius.c') diff --git a/packet-radius.c b/packet-radius.c index 46c1f0220d..6dd672ecc2 100644 --- a/packet-radius.c +++ b/packet-radius.c @@ -4,7 +4,7 @@ * * RFC 2865, RFC 2866, RFC 2867, RFC 2868, RFC 2869 * - * $Id: packet-radius.c,v 1.68 2002/08/28 21:00:28 jmayer Exp $ + * $Id: packet-radius.c,v 1.69 2002/12/02 23:43:28 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -2425,7 +2425,7 @@ static gchar *rdconvertinttostr(gchar *dest, int print_type, guint32 val) * * At last, forgive me if I've messed up some indentation... * */ -static gchar *rd_value_to_str_2(gchar *dest, e_avphdr *avph, tvbuff_t *tvb, +static gchar *rd_value_to_str_2(gchar *dest, const e_avphdr *avph, tvbuff_t *tvb, int offset, const value_value_string *vvs, proto_tree *tree) { int print_type; @@ -2452,7 +2452,7 @@ static gchar *rd_value_to_str_2(gchar *dest, e_avphdr *avph, tvbuff_t *tvb, int vsa_len; int vsa_index; rd_vsa_table *vsa_rvt; - e_avphdr *vsa_avph; + const e_avphdr *vsa_avph; /* prints the values of the attribute value pairs into a text buffer */ print_type = match_numval(avph->avp_type, vvs); @@ -2528,7 +2528,7 @@ static gchar *rd_value_to_str_2(gchar *dest, e_avphdr *avph, tvbuff_t *tvb, vsa_rvt = get_vsa_table(intval); do { - vsa_avph = (e_avphdr*)tvb_get_ptr(tvb, offset+vsa_len, + vsa_avph = (const e_avphdr*)tvb_get_ptr(tvb, offset+vsa_len, avph->avp_length-vsa_len); if (vsa_rvt) next_print_type = match_numval(vsa_avph->avp_type, -- cgit v1.2.3