/* 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>
}
gchar *
-abs_time_secs_to_str(guint32 abs_time)
+abs_time_secs_to_str(time_t abs_time)
{
struct tm *tmp;
static gchar *cur;
/* 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>
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*);
*
* 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>
gchar *cont;
value_string *valstrarr;
guint32 intval;
+ time_t timeval;
const guint8 *pd;
guint8 tag;
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);