diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-02-13 03:05:14 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-02-13 03:05:14 +0000 |
commit | c2594e742980e568daeae961cf84134c3d8dd598 (patch) | |
tree | 5ad0e1a8b3a6e9acc41a3f08b0e461d15ba7af0b /packet-radius.c | |
parent | 5795b17d48dcfca897f60932eeafe982ea1b5b00 (diff) |
Fetch the time stamp into a gint32, as it's known to be 32 bits, and let
the call to "abs_time_secs_to_str()" convert it to a "time_t".
svn path=/trunk/; revision=7134
Diffstat (limited to 'packet-radius.c')
-rw-r--r-- | packet-radius.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-radius.c b/packet-radius.c index 2919dc5d50..447c5b611f 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.76 2003/02/13 02:47:50 guy Exp $ + * $Id: packet-radius.c,v 1.77 2003/02/13 03:05:14 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2521,7 +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; + gint32 timeval; const guint8 *pd; guint8 tag; @@ -2728,7 +2728,7 @@ static gchar *rd_value_to_str_2(gchar *dest, const e_avphdr *avph, tvbuff_t *tvb case( RADIUS_TIMESTAMP ): timeval=tvb_get_ntohl(tvb,offset+2); - sprintf(cont,"%ld (%s)", (long)timeval, abs_time_secs_to_str(timeval)); + sprintf(cont,"%d (%s)", timeval, abs_time_secs_to_str(timeval)); break; case( RADIUS_INTEGER4_TAGGED ): intval = tvb_get_ntohl(tvb,offset+2); |