summaryrefslogtreecommitdiff
path: root/firmware/common/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/file.c')
-rw-r--r--firmware/common/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c
index 9d18c613bf..3b7a889833 100644
--- a/firmware/common/file.c
+++ b/firmware/common/file.c
@@ -18,9 +18,9 @@
18 ****************************************************************************/ 18 ****************************************************************************/
19#include <string.h> 19#include <string.h>
20#include <errno.h> 20#include <errno.h>
21#include <stdbool.h>
21#include "file.h" 22#include "file.h"
22#include "fat.h" 23#include "fat.h"
23#include "types.h"
24#include "dir.h" 24#include "dir.h"
25#include "debug.h" 25#include "debug.h"
26 26
@@ -111,13 +111,13 @@ int open(char* pathname, int flags)
111 111
112 openfiles[fd].cacheoffset = -1; 112 openfiles[fd].cacheoffset = -1;
113 openfiles[fd].fileoffset = 0; 113 openfiles[fd].fileoffset = 0;
114 openfiles[fd].busy = TRUE; 114 openfiles[fd].busy = true;
115 return fd; 115 return fd;
116} 116}
117 117
118int close(int fd) 118int close(int fd)
119{ 119{
120 openfiles[fd].busy = FALSE; 120 openfiles[fd].busy = false;
121 return 0; 121 return 0;
122} 122}
123 123