diff options
author | Aron Xu <aron@debian.org> | 2014-07-09 04:01:07 +0800 |
---|---|---|
committer | Aron Xu <aron@debian.org> | 2014-07-09 04:01:07 +0800 |
commit | 7042e17490515a990a45aa7237d11bc49ab0eaf0 (patch) | |
tree | 62b661911406394bbeaca8951d660bb6d8aac0de /win32/wince/wincecompat.c | |
parent | 2c8fe012ef1ff6e0613480dd182dec099aa9636e (diff) | |
download | libxml2-7042e17490515a990a45aa7237d11bc49ab0eaf0.tar.gz |
Imported Upstream version 2.8.0+dfsg1
Diffstat (limited to 'win32/wince/wincecompat.c')
-rw-r--r-- | win32/wince/wincecompat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/win32/wince/wincecompat.c b/win32/wince/wincecompat.c index bd49c57..1d8df87 100644 --- a/win32/wince/wincecompat.c +++ b/win32/wince/wincecompat.c @@ -34,10 +34,11 @@ 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 (int) fopen(filename, mode); + mode[0]="r"; + return fopen(filename, mode); + } int close(int handle) |