From f909f1a14dd42d4cd81a081bf75080a0afcb8e5a Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 2 Dec 2008 00:15:41 +0000 Subject: Lint fixes and prettiness. --- xml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xml.c') diff --git a/xml.c b/xml.c index 9265f178..49dabb8c 100644 --- a/xml.c +++ b/xml.c @@ -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 * @@ -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)) -- cgit v1.2.3-56-ge451