From 8482173e5a23f3815ef74bb1d9b3a70f72f86819 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 6 Sep 2014 11:44:15 -0700 Subject: Make some variables size_t, as values of that width are assigned to it. (I'd say "as values of that *type* are assigned to it", but the "len" field of a GString is of type "gsize", and, for some unknown reason, the GLib folks, rather than just using size_t, which is required by C89 to be available, invented their own "gsize" type, defined as "long", which happens to be narrower than "size_t" on LLP64 platforms such as 64-bit Windows. Sigh....) This squelches some compiler warnings. Change-Id: Ifca1300297b2e9b777fb2c426dda822ba157cfe5 Reviewed-on: https://code.wireshark.org/review/4014 Reviewed-by: Guy Harris --- epan/dtd_parse.l | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan/dtd_parse.l') diff --git a/epan/dtd_parse.l b/epan/dtd_parse.l index bec26323f6..551823ddda 100644 --- a/epan/dtd_parse.l +++ b/epan/dtd_parse.l @@ -63,8 +63,8 @@ static void* pParser; static GString* input_string; - static guint offsetx; - static guint len; + static size_t offsetx; + static size_t len; static gchar* location; static gchar* attr_name; @@ -328,7 +328,7 @@ extern dtd_build_data_t* dtd_parse(GString* s) { input_string = s; offsetx = 0; - len = (guint) input_string->len; + len = input_string->len; pParser = DtdParseAlloc(g_malloc); -- cgit v1.2.3