aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-syslog.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2009-04-03 19:01:40 +0000
committerGuy Harris <guy@alum.mit.edu>2009-04-03 19:01:40 +0000
commit9d6909f188dce85f1e9664da4528d68b776cf7da (patch)
tree278245afab29a2313d8ebe681be73a432e4d634d /epan/dissectors/packet-syslog.c
parent03af06a63f8bbbc6d96b46c894b4fb2088ad7f71 (diff)
Some size_t cleanups.
svn path=/trunk/; revision=27951
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);
}
}