diff options
-rw-r--r-- | epan/to_str.c | 4 | ||||
-rw-r--r-- | epan/to_str.h | 4 | ||||
-rw-r--r-- | packet-radius.c | 7 |
3 files changed, 8 insertions, 7 deletions
diff --git a/epan/to_str.c b/epan/to_str.c index a0315c30de..5819d2b4f7 100644 --- a/epan/to_str.c +++ b/epan/to_str.c @@ -1,7 +1,7 @@ /* to_str.c * Routines for utilities to convert various other types to strings. * - * $Id: to_str.c,v 1.24 2003/02/11 19:42:38 guy Exp $ + * $Id: to_str.c,v 1.25 2003/02/12 00:44:04 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -442,7 +442,7 @@ abs_time_to_str(nstime_t *abs_time) } gchar * -abs_time_secs_to_str(guint32 abs_time) +abs_time_secs_to_str(time_t abs_time) { struct tm *tmp; static gchar *cur; diff --git a/epan/to_str.h b/epan/to_str.h index e14c44bd09..fcc474325d 100644 --- a/epan/to_str.h +++ b/epan/to_str.h @@ -1,7 +1,7 @@ /* to_str.h * Definitions for utilities to convert various other types to strings. * - * $Id: to_str.h,v 1.13 2003/02/11 19:42:38 guy Exp $ + * $Id: to_str.h,v 1.14 2003/02/12 00:44:04 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -58,7 +58,7 @@ extern gchar* vines_addr_to_str(const guint8 *addrp); extern gchar* time_secs_to_str(guint32); extern gchar* time_msecs_to_str(guint32); extern gchar* abs_time_to_str(nstime_t*); -extern gchar* abs_time_secs_to_str(guint32); +extern gchar* abs_time_secs_to_str(time_t); extern void display_signed_time(gchar *, int, gint32, gint32, time_res_t); extern gchar* rel_time_to_str(nstime_t*); extern gchar* rel_time_to_secs_str(nstime_t*); 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); |