From ee9ab42f75213ea5905f43985de989f863b2165b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 11 Sep 2012 13:10:50 +0100 Subject: Fixup for latest libdom. --- render/box_construct.c | 3 ++- render/html_forms.c | 5 +++-- render/imagemap.c | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) (limited to 'render') diff --git a/render/box_construct.c b/render/box_construct.c index fe0cc2ade..5b22e9990 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -3012,7 +3012,8 @@ bool box_embed(BOX_SPECIAL_PARAMS) struct object_params *params; struct object_param *param; dom_namednodemap *attrs; - unsigned long idx, num_attrs; + unsigned long idx; + uint32_t num_attrs; dom_string *src; dom_exception err; diff --git a/render/html_forms.c b/render/html_forms.c index f5c6600cd..2165dc821 100644 --- a/render/html_forms.c +++ b/render/html_forms.c @@ -121,7 +121,8 @@ struct form *html_forms_get_forms(const char *docenc, dom_html_document *doc) dom_html_collection *forms; struct form *ret = NULL, *newf; dom_node *node; - unsigned long nforms, n; + unsigned long n; + uint32_t nforms; if (doc == NULL) return NULL; @@ -332,7 +333,7 @@ parse_input_element(struct form *forms, dom_html_input_element *input) if (control->type == GADGET_PASSWORD || control->type == GADGET_TEXTBOX) { - long maxlength; + int32_t maxlength; if (dom_html_input_element_get_max_length( input, &maxlength) != DOM_NO_ERR) { maxlength = -1; diff --git a/render/imagemap.c b/render/imagemap.c index ef79e35c5..9663a89f5 100644 --- a/render/imagemap.c +++ b/render/imagemap.c @@ -256,7 +256,8 @@ imagemap_extract(html_content *c) { dom_nodelist *nlist; dom_exception exc; - unsigned long maybe_maps, mapnr; + unsigned long mapnr; + uint32_t maybe_maps; exc = dom_document_get_elements_by_tag_name(c->document, corestring_dom_map, @@ -345,7 +346,8 @@ imagemap_extract_map_entries(dom_node *node, html_content *c, { dom_nodelist *nlist; dom_exception exc; - unsigned long tag_count, ent; + unsigned long ent; + uint32_t tag_count; exc = dom_element_get_elements_by_tag_name(node, tname, &nlist); if (exc != DOM_NO_ERR) { -- cgit v1.2.3