summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-09-25 23:33:13 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-09-25 23:33:13 +0000
commitbee268fac37799fc142ff742302673275efc11cb (patch)
tree01a9dd65d1335ce175a3dfc2c5b651e745a2f9ab /render
parent29d1e44dec29a3c029b47634b5474f49e0e6d43b (diff)
downloadnetsurf-bee268fac37799fc142ff742302673275efc11cb.tar.gz
netsurf-bee268fac37799fc142ff742302673275efc11cb.tar.bz2
C89
svn path=/trunk/netsurf/; revision=5440
Diffstat (limited to 'render')
-rw-r--r--render/html.c3
-rw-r--r--render/layout.c2
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;