=================================================================== RCS file: /cvs/mandoc/Attic/xml.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -p -r1.11 -r1.12 --- mandoc/Attic/xml.c 2008/12/03 19:21:58 1.11 +++ mandoc/Attic/xml.c 2008/12/03 21:27:56 1.12 @@ -1,4 +1,4 @@ -/* $Id: xml.c,v 1.11 2008/12/03 19:21:58 kristaps Exp $ */ +/* $Id: xml.c,v 1.12 2008/12/03 21:27:56 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -37,6 +37,7 @@ static int xml_end(struct md_mbuf *, const struct md_args *); +/* ARGSUSED */ static int xml_begin(struct md_mbuf *mbuf, const struct md_args *args) { @@ -54,6 +55,7 @@ xml_begin(struct md_mbuf *mbuf, const struct md_args * } +/* ARGSUSED */ static int xml_end(struct md_mbuf *mbuf, const struct md_args *args) { @@ -67,6 +69,7 @@ xml_end(struct md_mbuf *mbuf, const struct md_args *ar } +/* ARGSUSED */ static ssize_t xml_begintag(struct md_mbuf *mbuf, const struct md_args *args, enum md_ns ns, int tok, @@ -97,14 +100,14 @@ xml_begintag(struct md_mbuf *mbuf, const struct md_arg break; } - if ( ! ml_nputs(mbuf, toknames[tok], - strlen(toknames[tok]), &res)) + if ( ! ml_puts(mbuf, toknames[tok], &res)) return(-1); return((ssize_t)res); } +/* ARGSUSED */ static ssize_t xml_endtag(struct md_mbuf *mbuf, const struct md_args *args, enum md_ns ns, int tok) @@ -134,8 +137,7 @@ xml_endtag(struct md_mbuf *mbuf, const struct md_args break; } - if ( ! ml_nputs(mbuf, toknames[tok], - strlen(toknames[tok]), &res)) + if ( ! ml_puts(mbuf, toknames[tok], &res)) return(-1); return((ssize_t)res);