From bee268fac37799fc142ff742302673275efc11cb Mon Sep 17 00:00:00 2001 From: François Revel Date: Thu, 25 Sep 2008 23:33:13 +0000 Subject: C89 svn path=/trunk/netsurf/; revision=5440 --- render/html.c | 3 ++- render/layout.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/render/html.c b/render/html.c index 1e063e3a6..feecaf16b 100644 --- a/render/html.c +++ b/render/html.c @@ -154,6 +154,7 @@ bool html_process_data(struct content *c, char *data, unsigned int size) { unsigned long x; binding_error err; + const char *encoding; for (x = 0; x + CHUNK <= size; x += CHUNK) { LOG(("Parsing %d bytes", CHUNK)); @@ -180,7 +181,7 @@ encoding_change: LOG(("Changing encoding")); /* Retrieve new encoding */ - const char *encoding = binding_get_encoding( + encoding = binding_get_encoding( c->data.html.parser_binding, &c->data.html.encoding_source); diff --git a/render/layout.c b/render/layout.c index f1056f4ab..71833a8c5 100644 --- a/render/layout.c +++ b/render/layout.c @@ -541,9 +541,9 @@ void layout_minmax_block(struct box *block, const struct font_functions *font_fu int extra_fixed = 0; float extra_frac = 0; struct css_length size; + struct css_length gadget_size; /* Checkbox / radio buttons */ size.unit = CSS_UNIT_EM; size.value = 10; - struct css_length gadget_size; /* Checkbox / radio buttons */ gadget_size.unit = CSS_UNIT_EM; gadget_size.value = 1; -- cgit v1.2.3