diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/fat.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/export/fat.h b/firmware/export/fat.h index 7150d2b09f..2f1c7be0a8 100644 --- a/firmware/export/fat.h +++ b/firmware/export/fat.h | |||
@@ -57,10 +57,10 @@ struct fat_file | |||
57 | int sectornum; /* sector number in this cluster */ | 57 | int sectornum; /* sector number in this cluster */ |
58 | unsigned int direntry; /* short dir entry index from start of dir */ | 58 | unsigned int direntry; /* short dir entry index from start of dir */ |
59 | unsigned int direntries; /* number of dir entries used by this file */ | 59 | unsigned int direntries; /* number of dir entries used by this file */ |
60 | unsigned int dircluster; /* first cluster of dir */ | 60 | int dircluster; /* first cluster of dir */ |
61 | bool eof; | 61 | bool eof; |
62 | #ifdef HAVE_MULTIVOLUME | 62 | #ifdef HAVE_MULTIVOLUME |
63 | int volume; /* file resides on which volume */ | 63 | int volume; /* file resides on which volume */ |
64 | #endif | 64 | #endif |
65 | }; | 65 | }; |
66 | 66 | ||
@@ -83,7 +83,7 @@ extern int fat_create_dir(const char* name, | |||
83 | struct fat_dir* dir); | 83 | struct fat_dir* dir); |
84 | extern int fat_startsector(IF_MV_NONVOID(int volume)); // public for config sector | 84 | extern int fat_startsector(IF_MV_NONVOID(int volume)); // public for config sector |
85 | extern int fat_open(IF_MV2(int volume,) | 85 | extern int fat_open(IF_MV2(int volume,) |
86 | unsigned int cluster, | 86 | int cluster, |
87 | struct fat_file* ent, | 87 | struct fat_file* ent, |
88 | const struct fat_dir* dir); | 88 | const struct fat_dir* dir); |
89 | extern int fat_create_file(const char* name, | 89 | extern int fat_create_file(const char* name, |
@@ -96,7 +96,7 @@ extern int fat_seek(struct fat_file *ent, unsigned int sector ); | |||
96 | extern int fat_remove(struct fat_file *ent); | 96 | extern int fat_remove(struct fat_file *ent); |
97 | extern int fat_truncate(const struct fat_file *ent); | 97 | extern int fat_truncate(const struct fat_file *ent); |
98 | extern int fat_rename(struct fat_file* file, | 98 | extern int fat_rename(struct fat_file* file, |
99 | struct fat_dir* dir, | 99 | struct fat_dir* dir, |
100 | const unsigned char* newname, | 100 | const unsigned char* newname, |
101 | int size, int attr); | 101 | int size, int attr); |
102 | 102 | ||