forked from osmocom/wireshark
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:
parent
4ca4794705
commit
90c8f5dde0
|
@ -42,7 +42,7 @@
|
||||||
ts.secs = seconds;
|
ts.secs = seconds;
|
||||||
ts.nsecs = nanoseconds;
|
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)
|
if(hf_index >= 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -59,7 +59,7 @@ UtcTime TYPE = FT_STRING DISPLAY = BASE_NONE
|
||||||
if(len == 4)
|
if(len == 4)
|
||||||
{
|
{
|
||||||
milliseconds = tvb_get_ntohl(tvb, offset);
|
milliseconds = tvb_get_ntohl(tvb, offset);
|
||||||
ptime = time_msecs_to_str(milliseconds);
|
ptime = time_msecs_to_ep_str(milliseconds);
|
||||||
|
|
||||||
if(hf_index >= 0)
|
if(hf_index >= 0)
|
||||||
{
|
{
|
||||||
|
@ -79,7 +79,7 @@ UtcTime TYPE = FT_STRING DISPLAY = BASE_NONE
|
||||||
ts.secs = (days + 5113) * 86400 + milliseconds / 1000;
|
ts.secs = (days + 5113) * 86400 + milliseconds / 1000;
|
||||||
ts.nsecs = (milliseconds %% 1000) * 1000000U;
|
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)
|
if(hf_index >= 0)
|
||||||
{
|
{
|
||||||
proto_tree_add_string(tree, hf_index, tvb, offset, len, ptime);
|
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.secs = seconds;
|
||||||
ts.nsecs = nanoseconds;
|
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)
|
if(hf_index >= 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
ts.secs = seconds;
|
ts.secs = seconds;
|
||||||
ts.nsecs = nanoseconds;
|
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)
|
if(hf_index >= 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue