mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-15 23:24:06 +03:00
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
This commit is contained in:
parent
fd4f6fddf5
commit
aabc08477c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user