-/* $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>
*
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))