summaryrefslogtreecommitdiff
path: root/epan/to_str.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-02-11 19:42:38 +0000
committerGuy Harris <guy@alum.mit.edu>2003-02-11 19:42:38 +0000
commit1ad3b70b4b761525a789a091308dd7b487b79617 (patch)
tree06d7e070f252e1446aebb636a8a0b4e635cfd0d3 /epan/to_str.h
parentc684f70d833cca4af79663a59694680c9c5ef0ea (diff)
downloadwireshark-1ad3b70b4b761525a789a091308dd7b487b79617.tar.gz
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()". svn path=/trunk/; revision=7124
Diffstat (limited to 'epan/to_str.h')
-rw-r--r--epan/to_str.h3
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*);