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); } /*------------------------------------------------------------------*/