aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wsp.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-12-19 16:28:39 +0000
committerEvan Huus <eapache@gmail.com>2013-12-19 16:28:39 +0000
commit2ae8edccea07234fa916d0fb7193f28fb0783ab4 (patch)
tree8b76205aaa5bf9eddde8f313ef90e4c4212a4002 /epan/dissectors/packet-wsp.c
parenta6415ece0ad102d30ac5dce59b127bcf1bd6d3f1 (diff)
Rename more to_str functions to have ep_ in the name if they return ephemeral
buffers. Remove two unused functions. svn path=/trunk/; revision=54250
Diffstat (limited to 'epan/dissectors/packet-wsp.c')
-rw-r--r--epan/dissectors/packet-wsp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dissectors/packet-wsp.c b/epan/dissectors/packet-wsp.c
index 487ca583ef..4284000acc 100644
--- a/epan/dissectors/packet-wsp.c
+++ b/epan/dissectors/packet-wsp.c
@@ -1811,7 +1811,7 @@ add_headers (proto_tree *tree, tvbuff_t *tvb, int hf, packet_info *pinfo)
tvb, hdr_start, hdr_len + val_len,
"Requesting Time Of Day");
} else {
- val_str = abs_time_secs_to_str(val, ABSOLUTE_TIME_LOCAL, TRUE);
+ val_str = abs_time_secs_to_ep_str(val, ABSOLUTE_TIME_LOCAL, TRUE);
ti = proto_tree_add_string (wsp_headers,
hf_hdr_x_wap_tod,
tvb, hdr_start, hdr_len + val_len, val_str);
@@ -2856,12 +2856,12 @@ wkh_ ## underscored(proto_tree *tree, tvbuff_t *tvb, guint32 hdr_start, packet_i
if (val_id <= 4) { /* Length field already parsed by macro! */ \
get_date_value(val, tvb, off, len, ok); \
if (ok) { \
- str = abs_time_secs_to_str(val, ABSOLUTE_TIME_LOCAL, TRUE); \
+ str = abs_time_secs_to_ep_str(val, ABSOLUTE_TIME_LOCAL, TRUE); \
tvb_ensure_bytes_exist(tvb, hdr_start, offset - hdr_start); \
ti = proto_tree_add_string(tree, hf_hdr_ ## underscored, \
tvb, hdr_start, offset - hdr_start, str); \
/* BEHOLD: do NOT try to free str, as \
- * abs_time_secs_to_str() returns wmem_allocated data */ \
+ * abs_time_secs_to_ep_str() returns wmem_allocated data */ \
} \
} \
wkh_4_End(hf_hdr_ ## underscored); \
@@ -2891,12 +2891,12 @@ wkh_ ## underscored(proto_tree *tree, tvbuff_t *tvb, guint32 hdr_start, packet_i
if (val_id <= 4) { /* Length field already parsed by macro! */ \
get_date_value(val, tvb, off, len, ok); \
if (ok) { \
- str = abs_time_secs_to_str(val, ABSOLUTE_TIME_LOCAL, TRUE); \
+ str = abs_time_secs_to_ep_str(val, ABSOLUTE_TIME_LOCAL, TRUE); \
tvb_ensure_bytes_exist(tvb, hdr_start, offset - hdr_start); \
ti = proto_tree_add_string(tree, hf_hdr_ ## underscored, \
tvb, hdr_start, offset - hdr_start, str); \
/* BEHOLD: do NOT try to free str, as \
- * abs_time_secs_to_str() returns wmem_allocated data */ \
+ * abs_time_secs_to_ep_str() returns wmem_allocated data */ \
} \
} \
wkh_4_End(hf_hdr_ ## underscored); \
@@ -2944,7 +2944,7 @@ wkh_ ## underscored(proto_tree *tree, tvbuff_t *tvb, guint32 hdr_start, packet_i
tvb, hdr_start, offset - hdr_start, \
"Requesting Time Of Day"); \
} else { \
- str = abs_time_secs_to_str(val, ABSOLUTE_TIME_LOCAL, TRUE); \
+ str = abs_time_secs_to_ep_str(val, ABSOLUTE_TIME_LOCAL, TRUE); \
tvb_ensure_bytes_exist(tvb, hdr_start, offset - hdr_start); \
ti = proto_tree_add_string(tree, hf_hdr_ ## underscored, \
tvb, hdr_start, offset - hdr_start, str); \
@@ -3592,11 +3592,11 @@ wkh_profile_warning(proto_tree *tree, tvbuff_t *tvb, guint32 hdr_start, packet_i
get_date_value(val, tvb, off, len, ok);
if (ok) { /* Valid warn-text string */
off += len;
- val_str = abs_time_secs_to_str(val, ABSOLUTE_TIME_LOCAL, TRUE);
+ val_str = abs_time_secs_to_ep_str(val, ABSOLUTE_TIME_LOCAL, TRUE);
str = wmem_strdup_printf(wmem_packet_scope(), "; date=%s", val_str);
proto_item_append_string(ti, str);
/* BEHOLD: do NOT try to free str, as \
- * abs_time_secs_to_str() returns wmem_allocated data */ \
+ * abs_time_secs_to_ep_str() returns wmem_allocated data */ \
}
}
}