diff options
author | Evan Huus <eapache@gmail.com> | 2013-12-19 16:28:39 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-12-19 16:28:39 +0000 |
commit | 2ae8edccea07234fa916d0fb7193f28fb0783ab4 (patch) | |
tree | 8b76205aaa5bf9eddde8f313ef90e4c4212a4002 /epan/ftypes | |
parent | a6415ece0ad102d30ac5dce59b127bcf1bd6d3f1 (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/ftypes')
-rw-r--r-- | epan/ftypes/ftype-time.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/ftypes/ftype-time.c b/epan/ftypes/ftype-time.c index e32a482173..16a946f646 100644 --- a/epan/ftypes/ftype-time.c +++ b/epan/ftypes/ftype-time.c @@ -330,7 +330,7 @@ absolute_val_repr_len(fvalue_t *fv, ftrepr_t rtype _U_) { gchar *rep; - rep = abs_time_to_str(&fv->value.time, ABSOLUTE_TIME_LOCAL, + rep = abs_time_to_ep_str(&fv->value.time, ABSOLUTE_TIME_LOCAL, rtype == FTREPR_DISPLAY); return (int)strlen(rep) + 2; /* 2 for opening and closing quotes */ } @@ -339,7 +339,7 @@ static void absolute_val_to_repr(fvalue_t *fv, ftrepr_t rtype _U_, char *buf) { sprintf(buf, "\"%s\"", - abs_time_to_str(&fv->value.time, ABSOLUTE_TIME_LOCAL, + abs_time_to_ep_str(&fv->value.time, ABSOLUTE_TIME_LOCAL, rtype == FTREPR_DISPLAY)); } @@ -348,14 +348,14 @@ relative_val_repr_len(fvalue_t *fv, ftrepr_t rtype _U_) { gchar *rep; - rep = rel_time_to_secs_str(&fv->value.time); + rep = rel_time_to_secs_ep_str(&fv->value.time); return (int)strlen(rep); } static void relative_val_to_repr(fvalue_t *fv, ftrepr_t rtype _U_, char *buf) { - strcpy(buf, rel_time_to_secs_str(&fv->value.time)); + strcpy(buf, rel_time_to_secs_ep_str(&fv->value.time)); } void |