disk/file: Do not use & on arrays

it might be valid C but is confusing, and not consistent with the rest of file.c

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26191 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-05-20 12:59:12 +00:00
parent ddecf431e0
commit 24aeac2a75
2 changed files with 3 additions and 4 deletions

View file

@ -82,7 +82,7 @@ struct partinfo* disk_init(IF_MD_NONVOID(int drive))
(void)drive;
#endif
storage_read_sectors(IF_MD2(drive,) 0,1, &sector);
storage_read_sectors(IF_MD2(drive,) 0,1, sector);
/* check that the boot sector is initialized */
if ( (sector[510] != 0x55) ||
(sector[511] != 0xaa)) {

View file

@ -647,7 +647,7 @@ static int readwrite(int fd, void* buf, long count, bool write)
file->dirty = true;
}
else {
rc = fat_readwrite(&(file->fatfile), 1, &(file->cache),false);
rc = fat_readwrite(&(file->fatfile), 1, file->cache,false);
if (rc < 1 ) {
DEBUGF("Failed caching sector\n");
errno = EIO;
@ -756,8 +756,7 @@ off_t lseek(int fd, off_t offset, int whence)
}
}
if ( sectoroffset ) {
rc = fat_readwrite(&(file->fatfile), 1,
&(file->cache),false);
rc = fat_readwrite(&(file->fatfile), 1, file->cache ,false);
if ( rc < 0 ) {
errno = EIO;
return rc * 10 - 6;