diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-12-02 23:43:30 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-12-02 23:43:30 +0000 |
commit | 59932f27227c4769be94fb46936d123d1770c1a2 (patch) | |
tree | dd1b62868737457d51efa73389ae4975567f4fe3 /packet-radius.c | |
parent | 8414298f8921489c6174c24d4363c391822e83c5 (diff) |
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
Diffstat (limited to 'packet-radius.c')
-rw-r--r-- | packet-radius.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <gerald@ethereal.com> @@ -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, |