summaryrefslogtreecommitdiffstats
path: root/xml.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-02 00:15:41 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-02 00:15:41 +0000
commit751b1b613c7d6ae31ce255e24ec9736ec0449044 (patch)
treeb076c3d08d1ed235b5331c17da7a8f7a022c8919 /xml.c
parent0d055120de349c30f0ceb537d57f8694f67397da (diff)
downloadmandoc-751b1b613c7d6ae31ce255e24ec9736ec0449044.tar.gz
Lint fixes and prettiness.
Diffstat (limited to 'xml.c')
-rw-r--r--xml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xml.c b/xml.c
index 4445f9c2..b4c026e9 100644
--- a/xml.c
+++ b/xml.c
@@ -167,9 +167,9 @@ mbuf_putstring(struct md_xml *p, const char *buf)
static int
mbuf_nputstring(struct md_xml *p, const char *buf, size_t sz)
{
- size_t i;
+ int i;
- for (i = 0; i < sz; i++) {
+ for (i = 0; i < (int)sz; i++) {
switch (buf[i]) {
case ('&'):
if ( ! md_buf_puts(p->mbuf, "&amp;", 5))