static void
proto_tree_set_time(field_info *fi, nstime_t *value_ptr);
static void
-proto_tree_set_string(field_info *fi, const char* value, gboolean);
+proto_tree_set_string(field_info *fi, const char* value);
static void
proto_tree_set_string_tvb(field_info *fi, tvbuff_t *tvb, gint start, gint length);
static void
length);
}
new_fi->length = length;
- proto_tree_set_string(new_fi, string, FALSE);
+ proto_tree_set_string(new_fi, string);
break;
case FT_UINT_STRING:
pi = proto_tree_add_pi(tree, hfindex, tvb, start, &length, &new_fi);
DISSECTOR_ASSERT(length >= 0);
- proto_tree_set_string(new_fi, value, FALSE);
+ proto_tree_set_string(new_fi, value);
return pi;
}
/* Set the FT_STRING value */
static void
-proto_tree_set_string(field_info *fi, const char* value,
- gboolean already_allocated)
+proto_tree_set_string(field_info *fi, const char* value)
{
if (value)
- fvalue_set(&fi->value, (gpointer) value, already_allocated);
+ fvalue_set(&fi->value, (gpointer) value, FALSE);
else
- fvalue_set(&fi->value, (gpointer) "[ Null ]", already_allocated);
+ fvalue_set(&fi->value, (gpointer) "[ Null ]", FALSE);
}
static void
}
string = tvb_get_ephemeral_string(tvb, start, length);
- proto_tree_set_string(fi, string, FALSE);
+ proto_tree_set_string(fi, string);
}
/* Add a FT_ETHER to a proto_tree */