Remove unused code, make comments c-style, make one private function static
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12480 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2906c36df3
commit
e53e67014f
2 changed files with 7 additions and 15 deletions
|
@ -221,15 +221,6 @@ static long cluster2sec(IF_MV2(struct bpb* fat_bpb,) long cluster)
|
|||
+ fat_bpb->firstdatasector;
|
||||
}
|
||||
|
||||
long fat_startsector(IF_MV_NONVOID(int volume))
|
||||
{
|
||||
#ifndef HAVE_MULTIVOLUME
|
||||
const int volume = 0;
|
||||
#endif
|
||||
struct bpb* fat_bpb = &fat_bpbs[volume];
|
||||
return fat_bpb->startsector;
|
||||
}
|
||||
|
||||
void fat_size(IF_MV2(int volume,) unsigned long* size, unsigned long* free)
|
||||
{
|
||||
#ifndef HAVE_MULTIVOLUME
|
||||
|
@ -1353,7 +1344,7 @@ static int add_dir_entry(struct fat_dir* dir,
|
|||
return 0;
|
||||
}
|
||||
|
||||
unsigned char char2dos(unsigned char c, int* randomize)
|
||||
static unsigned char char2dos(unsigned char c, int* randomize)
|
||||
{
|
||||
switch(c)
|
||||
{
|
||||
|
@ -1829,7 +1820,7 @@ static int free_direntries(struct fat_file* file)
|
|||
rc = fat_seek(&dir, sector);
|
||||
if (rc < 0)
|
||||
return rc * 10 - 7;
|
||||
|
||||
|
||||
rc = fat_readwrite(&dir, 1, buf, true);
|
||||
if (rc < 1)
|
||||
return rc * 10 - 8;
|
||||
|
|
|
@ -86,12 +86,13 @@ struct fat_dir
|
|||
extern void fat_init(void);
|
||||
extern int fat_mount(IF_MV2(int volume,) IF_MV2(int drive,) long startsector);
|
||||
extern int fat_unmount(int volume, bool flush);
|
||||
extern void fat_size(IF_MV2(int volume,) unsigned long* size, unsigned long* free); // public for info
|
||||
extern void fat_recalc_free(IF_MV_NONVOID(int volume)); // public for debug info screen
|
||||
extern void fat_size(IF_MV2(int volume,) /* public for info */
|
||||
unsigned long* size,
|
||||
unsigned long* free);
|
||||
extern void fat_recalc_free(IF_MV_NONVOID(int volume)); /* public for debug info screen */
|
||||
extern int fat_create_dir(const char* name,
|
||||
struct fat_dir* newdir,
|
||||
struct fat_dir* dir);
|
||||
extern long fat_startsector(IF_MV_NONVOID(int volume)); // public for config sector
|
||||
extern int fat_open(IF_MV2(int volume,)
|
||||
long cluster,
|
||||
struct fat_file* ent,
|
||||
|
@ -114,7 +115,7 @@ extern int fat_opendir(IF_MV2(int volume,)
|
|||
struct fat_dir *ent, unsigned long currdir,
|
||||
const struct fat_dir *parent_dir);
|
||||
extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry);
|
||||
extern unsigned int fat_get_cluster_size(IF_MV_NONVOID(int volume));
|
||||
extern unsigned int fat_get_cluster_size(IF_MV_NONVOID(int volume)); /* public for debug info screen */
|
||||
extern bool fat_ismounted(int volume);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue