aboutsummaryrefslogtreecommitdiffstats
path: root/src/gfile/inc_nativefs.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-07-02 09:36:41 +1000
committerinmarket <andrewh@inmarket.com.au>2014-07-02 09:36:41 +1000
commit8a11eb71aa7e4de9b98944cac88073e71e39b7fb (patch)
tree3d629b039cc6aff4fa752fc315c56e92833c7721 /src/gfile/inc_nativefs.c
parentdc0f291350e8f44ceaf889c559f05342feacf6c9 (diff)
parent1a2e98af967d4433e98c5fa388cb816b1af46e2d (diff)
downloaduGFX-8a11eb71aa7e4de9b98944cac88073e71e39b7fb.tar.gz
uGFX-8a11eb71aa7e4de9b98944cac88073e71e39b7fb.tar.bz2
uGFX-8a11eb71aa7e4de9b98944cac88073e71e39b7fb.zip
Merge branch 'master' into eCos
Diffstat (limited to 'src/gfile/inc_nativefs.c')
-rw-r--r--src/gfile/inc_nativefs.c6
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;