From db319329411e4b1db7e19e8cc5eb518525d107ad Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 14 Apr 2002 23:04:04 +0000 Subject: From Joerg Mayer: Declares some variables static. Creates a new include file packet-rsvp.h, and make use of it (change some extern decls to #inlcude). Move the file packet-pgm.h into packet-pgm.c as it is not used by anything outside packet-pgm.c. svn path=/trunk/; revision=5162 --- packet-radius.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'packet-radius.c') diff --git a/packet-radius.c b/packet-radius.c index 754c80766b..d9bd5f0745 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.54 2002/04/08 20:30:52 gram Exp $ + * $Id: packet-radius.c,v 1.55 2002/04/14 23:04:04 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -852,7 +852,7 @@ static value_string radius_attrib_type_vals[] = { {0,NULL}, }; -guint32 match_numval(guint32 val, const value_value_pair *vs) +static guint32 match_numval(guint32 val, const value_value_pair *vs) { guint32 i = 0; @@ -867,7 +867,8 @@ guint32 match_numval(guint32 val, const value_value_pair *vs) static gchar textbuffer[2000]; -gchar *rdconvertbufftostr(gchar *dest, tvbuff_t *tvb, int offset, int length) +static gchar * +rdconvertbufftostr(gchar *dest, tvbuff_t *tvb, int offset, int length) { /*converts the raw buffer into printable text */ guint32 i; @@ -895,7 +896,7 @@ gchar *rdconvertbufftostr(gchar *dest, tvbuff_t *tvb, int offset, int length) return dest; } -gchar *rd_match_strval(guint32 val, const value_string *vs) { +static gchar *rd_match_strval(guint32 val, const value_string *vs) { return val_to_str(val, vs, "Undefined (%u)"); } @@ -1146,7 +1147,8 @@ static gchar *rd_value_to_str(e_avphdr *avph, tvbuff_t *tvb, int offset) } -void dissect_attribute_value_pairs(tvbuff_t *tvb, int offset,proto_tree *tree, +static void +dissect_attribute_value_pairs(tvbuff_t *tvb, int offset,proto_tree *tree, int avplength,packet_info *pinfo) { /* adds the attribute value pairs to the tree */ -- cgit v1.2.3