diff options
Diffstat (limited to 'src/gfile/inc_nativefs.c')
-rw-r--r-- | src/gfile/inc_nativefs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gfile/inc_nativefs.c b/src/gfile/inc_nativefs.c index 4ecb2004..6845cb71 100644 --- a/src/gfile/inc_nativefs.c +++ b/src/gfile/inc_nativefs.c @@ -46,11 +46,13 @@ static const GFILEVMT FsNativeVMT = { NativeDel, NativeExists, NativeFilesize, NativeRen, NativeOpen, NativeClose, NativeRead, NativeWrite, NativeSetpos, NativeGetsize, NativeEof, + 0, 0, + 0 }; #undef GFILE_CHAINHEAD #define GFILE_CHAINHEAD &FsNativeVMT -static void flags2mode(char *buf, uint16_t flags) { +static void Native_flags2mode(char *buf, uint16_t flags) { if (flags & GFILEFLG_MUSTEXIST) *buf = 'r'; else if (flags & GFILEFLG_APPEND) @@ -89,7 +91,7 @@ static bool_t NativeOpen(GFILE *f, const char *fname) { FILE *fd; char mode[5]; - flags2mode(mode, f->flags); + Native_flags2mode(mode, f->flags); if (!(fd = fopen(fname, mode))) return FALSE; f->obj = (void *)fd; |