diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-02-12 00:44:04 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-02-12 00:44:04 +0000 |
commit | 6c99ee4db07cc153b7fcaaa06c6d8e93cf75f034 (patch) | |
tree | 3b1baf373d15d7f90cfc9c786f584292a60ead12 /packet-radius.c | |
parent | 1ad3b70b4b761525a789a091308dd7b487b79617 (diff) |
Make the argument to "abs_time_secs_to_str()" a "time_t" - it's in ANSI
C, and it's the right thing to pass to "localtime()".
svn path=/trunk/; revision=7125
Diffstat (limited to 'packet-radius.c')
-rw-r--r-- | packet-radius.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packet-radius.c b/packet-radius.c index 81f920713e..e0d2cea883 100644 --- a/packet-radius.c +++ b/packet-radius.c @@ -5,7 +5,7 @@ * * RFC 2865, RFC 2866, RFC 2867, RFC 2868, RFC 2869 * - * $Id: packet-radius.c,v 1.74 2003/02/11 19:42:36 guy Exp $ + * $Id: packet-radius.c,v 1.75 2003/02/12 00:44:02 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2521,6 +2521,7 @@ static gchar *rd_value_to_str_2(gchar *dest, const e_avphdr *avph, tvbuff_t *tvb gchar *cont; value_string *valstrarr; guint32 intval; + time_t timeval; const guint8 *pd; guint8 tag; @@ -2726,8 +2727,8 @@ static gchar *rd_value_to_str_2(gchar *dest, const e_avphdr *avph, tvbuff_t *tvb break; case( RADIUS_TIMESTAMP ): - intval=tvb_get_ntohl(tvb,offset+2); - sprintf(cont,"%d (%s)", intval, abs_time_secs_to_str(intval)); + timeval=tvb_get_ntohl(tvb,offset+2); + sprintf(cont,"%d (%s)", timeval, abs_time_secs_to_str(timeval)); break; case( RADIUS_INTEGER4_TAGGED ): intval = tvb_get_ntohl(tvb,offset+2); |