aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authorPatrick Gansterer <paroga@paroga.com>2012-08-10 12:34:24 +0200
committerDaniel Veillard <veillard@redhat.com>2012-08-13 18:00:22 +0800
commitaabc08477cf7b5110bf4594edccfcb8d4611cfde (patch)
treefe975d9ba3b93e06164f6305a9bf406e11750e8c /win32
parentfd4f6fddf5020f2f7a8ea4459a9b2feef7494fe4 (diff)
downloadandroid_external_libxml2-aabc08477cf7b5110bf4594edccfcb8d4611cfde.tar.gz
android_external_libxml2-aabc08477cf7b5110bf4594edccfcb8d4611cfde.tar.bz2
android_external_libxml2-aabc08477cf7b5110bf4594edccfcb8d4611cfde.zip
Fix compiler warnings of wincecompat.c
For https://bugzilla.gnome.org/show_bug.cgi?id=681592 *) Add and explicit cast when converting FILE* to int *) Don't assign a c-string to the element of an char-array
Diffstat (limited to 'win32')
-rw-r--r--win32/wince/wincecompat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/win32/wince/wincecompat.c b/win32/wince/wincecompat.c
index 1d8df877..bd49c575 100644
--- a/win32/wince/wincecompat.c
+++ b/win32/wince/wincecompat.c
@@ -34,11 +34,10 @@ int open(const char *filename,int oflag, ...)
char mode[3]; /* mode[0] ="w/r/a" mode[1]="+" */
mode[2]=0;
if ( oflag==(O_WRONLY|O_CREAT) )
- mode[0]="w";
+ mode[0]='w';
else if (oflag==O_RDONLY)
- mode[0]="r";
- return fopen(filename, mode);
-
+ mode[0]='r';
+ return (int) fopen(filename, mode);
}
int close(int handle)