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>
This commit is contained in:
Guy Harris 2014-09-06 11:44:15 -07:00
parent 0bafffb28d
commit 8482173e5a
1 changed files with 3 additions and 3 deletions

View File

@ -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);