summaryrefslogtreecommitdiff
path: root/firmware/common
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/dir.c8
-rw-r--r--firmware/common/file.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/firmware/common/dir.c b/firmware/common/dir.c
index acc412c570..f7f61719a2 100644
--- a/firmware/common/dir.c
+++ b/firmware/common/dir.c
@@ -18,14 +18,14 @@
18 ****************************************************************************/ 18 ****************************************************************************/
19#include <stdio.h> 19#include <stdio.h>
20#include <string.h> 20#include <string.h>
21#include <stdbool.h>
21#include "fat.h" 22#include "fat.h"
22#include "dir.h" 23#include "dir.h"
23#include "debug.h" 24#include "debug.h"
24#include "types.h"
25 25
26static DIR thedir; 26static DIR thedir;
27static struct dirent theent; 27static struct dirent theent;
28static bool busy=FALSE; 28static bool busy=false;
29 29
30DIR* opendir(char* name) 30DIR* opendir(char* name)
31{ 31{
@@ -70,14 +70,14 @@ DIR* opendir(char* name)
70 } 70 }
71 } 71 }
72 72
73 busy = TRUE; 73 busy = true;
74 74
75 return &thedir; 75 return &thedir;
76} 76}
77 77
78int closedir(DIR* dir) 78int closedir(DIR* dir)
79{ 79{
80 busy=FALSE; 80 busy=false;
81 return 0; 81 return 0;
82} 82}
83 83
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