aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-syslog.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2009-04-03 19:01:40 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2009-04-03 19:01:40 +0000
commitdaef6576c3d3b9cd1a6d063f6f016a6445c9238a (patch)
tree278245afab29a2313d8ebe681be73a432e4d634d /epan/dissectors/packet-syslog.c
parent6ca89cb8f923c23e38763dec7a93cb88971a0683 (diff)
Some size_t cleanups.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27951 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-syslog.c')
-rw-r--r--epan/dissectors/packet-syslog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-syslog.c b/epan/dissectors/packet-syslog.c
index 0050d21bd8..96673b617a 100644
--- a/epan/dissectors/packet-syslog.c
+++ b/epan/dissectors/packet-syslog.c
@@ -181,7 +181,7 @@ static tvbuff_t *
mtp3_msu_present(gint fac, gint level, const char *msg_str, gint chars_truncated)
{
size_t nbytes;
- gint len;
+ size_t len;
gchar **split_string, *msu_hex_dump;
tvbuff_t *mtp3_tvb = NULL;
guint8 *byte_array;
@@ -212,8 +212,8 @@ mtp3_msu_present(gint fac, gint level, const char *msg_str, gint chars_truncated
byte_array = convert_string_to_hex(msu_hex_dump, &nbytes);
if (byte_array) {
- mtp3_tvb = tvb_new_real_data(byte_array, nbytes,
- nbytes + chars_truncated / 2);
+ mtp3_tvb = tvb_new_real_data(byte_array, (guint)nbytes,
+ (guint)nbytes + chars_truncated / 2);
tvb_set_free_cb(mtp3_tvb, g_free);
}
}