From 2fedec98f917f221e228f71df62670a8e43c4d6a Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Mon, 19 Jul 2004 20:59:10 +0000 Subject: [project @ 2004-07-19 20:59:10 by joty] Warning squashing. svn path=/import/netsurf/; revision=1120 --- render/box.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'render/box.c') diff --git a/render/box.c b/render/box.c index 12b696d78..a758adbd5 100644 --- a/render/box.c +++ b/render/box.c @@ -1128,10 +1128,11 @@ struct box_result box_select(xmlNode *n, struct box_status *status, return (struct box_result) {box, false, false}; } + void add_option(xmlNode* n, struct form_control* current_select, const char *text) { struct form_option *option = xcalloc(1, sizeof(struct form_option)); - const char *s; + char *s; if ((text = squash_whitespace(text)) == NULL) { free(option); @@ -1159,7 +1160,7 @@ void add_option(xmlNode* n, struct form_control* current_select, const char *tex if (*s == ' ') { const char *org_text = text; text = cnv_space2nbsp(org_text); - free(org_text); + free((void *)org_text); } option->selected = option->initial_selected = false; @@ -1176,6 +1177,7 @@ void add_option(xmlNode* n, struct form_control* current_select, const char *tex } } + struct box_result box_input(xmlNode *n, struct box_status *status, struct css_style *style) { -- cgit v1.2.3