From 490610c0af89725fe76cd08420a8fc72990dcc06 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 1 Mar 2005 23:55:43 +0000 Subject: [PATCH] Fixed compiler warnings SVN revision: 1226 --- src/mxml.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mxml.c b/src/mxml.c index 4eaf73c8..bf10ef5f 100755 --- a/src/mxml.c +++ b/src/mxml.c @@ -6,6 +6,9 @@ Contents: Midas XML Library $Log$ + Revision 1.2 2005/03/01 23:55:43 ritt + Fixed compiler warnings + Revision 1.1 2005/03/01 23:48:18 ritt Implemented MXML for password file @@ -32,6 +35,11 @@ typedef int BOOL; #define O_TEXT 0 #define O_BINARY 0 +#include +#include +#include +#include +#include #include #include @@ -194,7 +202,7 @@ BOOL mxml_start_element(MXML_WRITER *writer, const char *name) writer->element_is_open = TRUE; writer->data_was_written = FALSE; - return write(writer->fh, line, strlen(line)) == strlen(line); + return write(writer->fh, line, strlen(line)) == (int)strlen(line); } /*------------------------------------------------------------------*/ @@ -234,7 +242,7 @@ BOOL mxml_end_element(MXML_WRITER *writer) strlcat(line, ">\n", sizeof(line)); writer->data_was_written = FALSE; - return write(writer->fh, line, strlen(line)) == strlen(line); + return write(writer->fh, line, strlen(line)) == (int)strlen(line); } /*------------------------------------------------------------------*/