Copy Evan r54250 changes to asn/

Rename more to_str functions to have ep_ in the name if they return ephemeral buffers.

svn path=/trunk/; revision=54313
This commit is contained in:
Jakub Zawadzki 2013-12-20 22:32:11 +00:00
parent 4ca4794705
commit 90c8f5dde0
3 changed files with 6 additions and 6 deletions

View File

@ -42,7 +42,7 @@
ts.secs = seconds;
ts.nsecs = nanoseconds;
ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
ptime = abs_time_to_ep_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
if(hf_index >= 0)
{

View File

@ -59,7 +59,7 @@ UtcTime TYPE = FT_STRING DISPLAY = BASE_NONE
if(len == 4)
{
milliseconds = tvb_get_ntohl(tvb, offset);
ptime = time_msecs_to_str(milliseconds);
ptime = time_msecs_to_ep_str(milliseconds);
if(hf_index >= 0)
{
@ -79,7 +79,7 @@ UtcTime TYPE = FT_STRING DISPLAY = BASE_NONE
ts.secs = (days + 5113) * 86400 + milliseconds / 1000;
ts.nsecs = (milliseconds %% 1000) * 1000000U;
ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
ptime = abs_time_to_ep_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
if(hf_index >= 0)
{
proto_tree_add_string(tree, hf_index, tvb, offset, len, ptime);
@ -126,7 +126,7 @@ UtcTime TYPE = FT_STRING DISPLAY = BASE_NONE
ts.secs = seconds;
ts.nsecs = nanoseconds;
ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
ptime = abs_time_to_ep_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
if(hf_index >= 0)
{

View File

@ -49,7 +49,7 @@
ts.secs = seconds;
ts.nsecs = nanoseconds;
ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
ptime = abs_time_to_ep_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
if(hf_index >= 0)
{
@ -74,4 +74,4 @@ UtcTime TYPE = FT_STRING DISPLAY = BASE_NONE
sv_data.smpMod = value;
#.END
#.END_OF_CNF
#.END_OF_CNF