=================================================================== RCS file: /cvs/mandoc/html.c,v retrieving revision 1.43 retrieving revision 1.45 diff -u -p -r1.43 -r1.45 --- mandoc/html.c 2009/09/21 13:06:13 1.43 +++ mandoc/html.c 2009/09/21 13:43:21 1.45 @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.43 2009/09/21 13:06:13 kristaps Exp $ */ +/* $Id: html.c,v 1.45 2009/09/21 13:43:21 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -23,6 +23,7 @@ #include #include #include +#include #include "chars.h" #include "mdoc.h" @@ -406,7 +407,7 @@ void * html_alloc(char *outopts) { struct html *h; - char *toks[3], *o, *v; + char *toks[3], *v; toks[0] = "style"; toks[1] = "base"; @@ -423,8 +424,7 @@ html_alloc(char *outopts) return(NULL); } - while (*outopts) { - o = outopts; + while (*outopts) switch (getsubopt(&outopts, toks, &v)) { case (0): h->style = v; @@ -435,7 +435,6 @@ html_alloc(char *outopts) default: break; } - } return(h); }