From 900a3a9b241698b50b0a5276198f644304085100 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Wed, 26 Jun 2002 12:19:24 +0000 Subject: [project @ 2002-06-26 12:19:24 by bursa] Make compilation with lcc work. svn path=/import/netsurf/; revision=23 --- render/layout.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'render/layout.c') diff --git a/render/layout.c b/render/layout.c index c47211879..45a51bd88 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1,5 +1,5 @@ /** - * $Id: layout.c,v 1.8 2002/06/21 18:16:24 bursa Exp $ + * $Id: layout.c,v 1.9 2002/06/26 12:19:24 bursa Exp $ */ #include @@ -51,7 +51,7 @@ signed long len(struct css_length * length, struct css_style * style) case CSS_UNIT_MM: return length->value * 3.5; case CSS_UNIT_PT: return length->value * 90.0 / 72.0; case CSS_UNIT_PC: return length->value * 90.0 / 6.0; - default: return 0; + default: break; } return 0; } @@ -170,8 +170,8 @@ unsigned long layout_block_children(struct box * box, unsigned long width, struc break; default: fprintf(stderr, "%s -> %s\n", - box->node ? box->node->name : "()", - c->node ? c->node->name : "()"); + box->node ? (const char *) box->node->name : "()", + c->node ? (const char *) c->node->name : "()"); die("block child not block, table, or inline container"); } } @@ -382,7 +382,7 @@ struct box * layout_line(struct box * first, unsigned long width, unsigned long switch (first->parent->parent->style->text_align) { case CSS_TEXT_ALIGN_RIGHT: x0 = x1 - x; break; case CSS_TEXT_ALIGN_CENTER: x0 = (x0 + (x1 - x)) / 2; break; - default: /* leave on left */ + default: break; /* leave on left */ } for (d = first; d != b; d = d->next) { if (d->type == BOX_INLINE) { -- cgit v1.2.3