mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Fixed compiler warnings
SVN revision: 1226
This commit is contained in:
parent
737dd7a227
commit
490610c0af
12
src/mxml.c
12
src/mxml.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Midas XML Library
|
Contents: Midas XML Library
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.2 2005/03/01 23:55:43 ritt
|
||||||
|
Fixed compiler warnings
|
||||||
|
|
||||||
Revision 1.1 2005/03/01 23:48:18 ritt
|
Revision 1.1 2005/03/01 23:48:18 ritt
|
||||||
Implemented MXML for password file
|
Implemented MXML for password file
|
||||||
|
|
||||||
@ -32,6 +35,11 @@ typedef int BOOL;
|
|||||||
#define O_TEXT 0
|
#define O_TEXT 0
|
||||||
#define O_BINARY 0
|
#define O_BINARY 0
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <errno.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
@ -194,7 +202,7 @@ BOOL mxml_start_element(MXML_WRITER *writer, const char *name)
|
|||||||
writer->element_is_open = TRUE;
|
writer->element_is_open = TRUE;
|
||||||
writer->data_was_written = FALSE;
|
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));
|
strlcat(line, ">\n", sizeof(line));
|
||||||
writer->data_was_written = FALSE;
|
writer->data_was_written = FALSE;
|
||||||
|
|
||||||
return write(writer->fh, line, strlen(line)) == strlen(line);
|
return write(writer->fh, line, strlen(line)) == (int)strlen(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user