diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-02-11 19:42:38 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-02-11 19:42:38 +0000 |
commit | 0cd987716d14e7a60fbb008a2b9accad911411ef (patch) | |
tree | 06d7e070f252e1446aebb636a8a0b4e635cfd0d3 /epan/to_str.h | |
parent | ffadc814309e6b3aca27a5d6597bf797fd4b09d5 (diff) |
Add a "abs_time_secs_to_str()" routine that takes a UNIX time-since-the-
epoch-in-seconds value and converts it to a string.
Use that routine in the RADIUS dissector, rather than using "ctime()"
and "tzname[]" - "tzname[]" strings might contain non-ASCII characters,
which currently give the GTK+ 1.3[.x] used on Windows, and also, I
think, GTK+ 2.x, heartburn, as they expect UTF-8, not, for example, ISO
8859/1.
Fix the string length in "abs_time_to_str()".
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7124 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/to_str.h')
-rw-r--r-- | epan/to_str.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/to_str.h b/epan/to_str.h index 4743d7c6a8..e14c44bd09 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.12 2002/12/09 21:34:58 guy Exp $ + * $Id: to_str.h,v 1.13 2003/02/11 19:42:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -58,6 +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 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*); |