Add casts to make it compile on Windows.

svn path=/trunk/; revision=29888
This commit is contained in:
Anders Broman 2009-09-14 05:59:38 +00:00
parent d642dc9f41
commit a591c7a074
1 changed files with 2 additions and 2 deletions

View File

@ -816,7 +816,7 @@ dissect_collectd (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
ndispatch.time, ndispatch.time_str);
proto_tree_add_text (pt, tvb, ndispatch.severity_off, 8,
"Severity: %s (%#"G_GINT64_MODIFIER"x)",
val_to_str(ndispatch.severity, severity_names, "UNKNOWN"),
val_to_str((gint32)ndispatch.severity, severity_names, "UNKNOWN"),
ndispatch.severity);
proto_tree_add_text (pt, tvb, ndispatch.message_off,
ndispatch.message_len,
@ -838,7 +838,7 @@ dissect_collectd (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_item_set_text (pi,
"collectd SEVERITY segment: "
"%s (%"G_GINT64_MODIFIER"u)",
val_to_str (ndispatch.severity, severity_names, "UNKNOWN"),
val_to_str ((gint32)ndispatch.severity, severity_names, "UNKNOWN"),
ndispatch.severity);
}