aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dtd_parse.l
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-09-06 11:44:15 -0700
committerGuy Harris <guy@alum.mit.edu>2014-09-06 18:45:53 +0000
commit8482173e5a23f3815ef74bb1d9b3a70f72f86819 (patch)
tree0c26b055d1e0412a0e19b6818b851eccc3220f4e /epan/dtd_parse.l
parent0bafffb28dd4f681d717b61612276497ec6fd345 (diff)
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 <guy@alum.mit.edu>
Diffstat (limited to 'epan/dtd_parse.l')
-rw-r--r--epan/dtd_parse.l6
1 files changed, 3 insertions, 3 deletions
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);