Skip to content
Snippets Groups Projects
Commit 768621d9 authored by deuce's avatar deuce
Browse files

Fix warnings in last commit

parent 5647cfc9
Branches
Tags
No related merge requests found
......@@ -77,17 +77,17 @@ FILE* fnopen(int *fd, char *str, int access)
*fd=file;
if(access&O_APPEND) {
if(access&O_RDWR==O_RDWR)
if((access&O_RDWR)==O_RDWR)
strcpy(mode,"a+");
else
strcpy(mode,"a");
} else if(access&(O_TRUNC|O_WRONLY)) {
if(access&O_RDWR==O_RDWR)
if((access&O_RDWR)==O_RDWR)
strcpy(mode,"w+");
else
strcpy(mode,"w");
} else {
if(access&O_RDWR==O_RDWR)
if((access&O_RDWR)==O_RDWR)
strcpy(mode,"r+");
else
strcpy(mode,"r");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment