diff options
author | Evan Huus <eapache@gmail.com> | 2014-06-15 23:42:14 -0700 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-06-16 17:26:25 +0000 |
commit | de00c49bd84c853c9260f70cc5857c5a5ab6d3be (patch) | |
tree | d20495295746d9c1b0623b631931f538ee6d3581 /epan/wslua/wslua_util.c | |
parent | b71b68cd637de5501de9d5684c79b6c8b5b2dfd3 (diff) |
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 <mmann78@netscape.net>
Diffstat (limited to 'epan/wslua/wslua_util.c')
-rw-r--r-- | epan/wslua/wslua_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |