summaryrefslogtreecommitdiffstats
path: root/rbutil/ipodpatcher/fat32format.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-07-29 21:19:14 +0000
committerDave Chapman <dave@dchapman.com>2007-07-29 21:19:14 +0000
commit2cc80f502e93b4f041fbc80f00cb76e7de47730d (patch)
tree7443c95c128e1cb4f58b741e6f8753f9562ca8da /rbutil/ipodpatcher/fat32format.c
parent3b1119bf27ec945a54e1d60279fc542629885c64 (diff)
downloadrockbox-2cc80f502e93b4f041fbc80f00cb76e7de47730d.tar.gz
rockbox-2cc80f502e93b4f041fbc80f00cb76e7de47730d.tar.bz2
rockbox-2cc80f502e93b4f041fbc80f00cb76e7de47730d.zip
Add -W to CFLAGS in Makefile and fix the generated warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14066 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/ipodpatcher/fat32format.c')
-rw-r--r--rbutil/ipodpatcher/fat32format.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/rbutil/ipodpatcher/fat32format.c b/rbutil/ipodpatcher/fat32format.c
index 6d42379124..e0e30db602 100644
--- a/rbutil/ipodpatcher/fat32format.c
+++ b/rbutil/ipodpatcher/fat32format.c
@@ -333,8 +333,7 @@ static void create_boot_sector(unsigned char* buf,
buf[511] = 0xaa;
}
-static void create_fsinfo(unsigned char* buf,
- struct ipod_t* ipod, int partition)
+static void create_fsinfo(unsigned char* buf)
{
struct FAT_FSINFO* pFAT32FsInfo = (struct FAT_FSINFO*)buf;
@@ -350,8 +349,7 @@ static void create_fsinfo(unsigned char* buf,
pFAT32FsInfo->dNxt_Free = htole32(3);
}
-static void create_firstfatsector(unsigned char* buf,
- struct ipod_t* ipod, int partition)
+static void create_firstfatsector(unsigned char* buf)
{
uint32_t* p = (uint32_t*)buf; /* We know the buffer is aligned */
@@ -481,7 +479,7 @@ int format_partition(struct ipod_t* ipod, int partition)
/* Create the boot sector structure */
create_boot_sector(sectorbuf, ipod, partition);
- create_fsinfo(sectorbuf + 512, ipod, partition);
+ create_fsinfo(sectorbuf + 512);
/* Write boot sector and fsinfo at start of partition */
if (ipod_seek(ipod, ipod->pinfo[partition].start * ipod->sector_size) < 0) {
@@ -504,7 +502,7 @@ int format_partition(struct ipod_t* ipod, int partition)
}
/* Create the first FAT sector */
- create_firstfatsector(sectorbuf, ipod, partition);
+ create_firstfatsector(sectorbuf);
/* Write the first fat sector in the right places */
for ( i=0; i<NumFATs; i++ ) {