From de00c49bd84c853c9260f70cc5857c5a5ab6d3be Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Sun, 15 Jun 2014 23:42:14 -0700 Subject: Convert a bunch of time_to_str functions to wmem Change-Id: I24fe3cc4a3589dadc4528a77fe7ff13d06b1a983 Reviewed-on: https://code.wireshark.org/review/2245 Reviewed-by: Michael Mann --- epan/wslua/wslua_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/wslua/wslua_util.c') diff --git a/epan/wslua/wslua_util.c b/epan/wslua/wslua_util.c index 77d264cc58..5c40b317a8 100644 --- a/epan/wslua/wslua_util.c +++ b/epan/wslua/wslua_util.c @@ -45,7 +45,7 @@ WSLUA_FUNCTION wslua_format_date(lua_State* LS) { /* Formats an absolute timesta then.secs = (guint32)(floor(timestamp)); then.nsecs = (guint32) ( (timestamp-(double)(then.secs))*1000000000); - str = abs_time_to_ep_str(&then, ABSOLUTE_TIME_LOCAL, TRUE); + str = abs_time_to_str(NULL, &then, ABSOLUTE_TIME_LOCAL, TRUE); /* XXX right scope? */ lua_pushstring(LS,str); WSLUA_RETURN(1); /* A string with the formated date */ @@ -59,7 +59,7 @@ WSLUA_FUNCTION wslua_format_time(lua_State* LS) { /* Formats a relative timestam then.secs = (guint32)(floor(timestamp)); then.nsecs = (guint32) ( (timestamp-(double)(then.secs))*1000000000); - str = rel_time_to_ep_str(&then); + str = rel_time_to_str(NULL, &then); /* XXX what is the right scope? */ lua_pushstring(LS,str); WSLUA_RETURN(1); /* A string with the formated time */ -- cgit v1.2.3