diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-02 00:15:41 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-02 00:15:41 +0000 |
commit | f909f1a14dd42d4cd81a081bf75080a0afcb8e5a (patch) | |
tree | da7c1c8f977ed95d8a40992da977b3a75f6ee90e /xml.c | |
parent | e161d1654cb52a1fb625f34e031f7d22244b8e29 (diff) | |
download | mandoc-f909f1a14dd42d4cd81a081bf75080a0afcb8e5a.tar.gz mandoc-f909f1a14dd42d4cd81a081bf75080a0afcb8e5a.tar.zst mandoc-f909f1a14dd42d4cd81a081bf75080a0afcb8e5a.zip |
Lint fixes and prettiness.
Diffstat (limited to 'xml.c')
-rw-r--r-- | xml.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: xml.c,v 1.6 2008/12/02 00:10:37 kristaps Exp $ */ +/* $Id: xml.c,v 1.7 2008/12/02 00:15:41 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> * @@ -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, "&", 5)) |