diff options
author | Dave Chapman <dave@dchapman.com> | 2007-07-29 21:19:14 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-07-29 21:19:14 +0000 |
commit | 2cc80f502e93b4f041fbc80f00cb76e7de47730d (patch) | |
tree | 7443c95c128e1cb4f58b741e6f8753f9562ca8da /rbutil/ipodpatcher/ipodio.h | |
parent | 3b1119bf27ec945a54e1d60279fc542629885c64 (diff) | |
download | rockbox-2cc80f502e93b4f041fbc80f00cb76e7de47730d.tar.gz 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/ipodio.h')
-rw-r--r-- | rbutil/ipodpatcher/ipodio.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rbutil/ipodpatcher/ipodio.h b/rbutil/ipodpatcher/ipodio.h index a4625f7bc7..2f106df521 100644 --- a/rbutil/ipodpatcher/ipodio.h +++ b/rbutil/ipodpatcher/ipodio.h | |||
@@ -52,6 +52,9 @@ struct ipod_directory_t { | |||
52 | uint32_t loadAddr; | 52 | uint32_t loadAddr; |
53 | }; | 53 | }; |
54 | 54 | ||
55 | /* A fake partition type - DOS partition tables can't include HFS partitions */ | ||
56 | #define PARTTYPE_HFS 0xffff | ||
57 | |||
55 | struct partinfo_t { | 58 | struct partinfo_t { |
56 | uint32_t start; /* first sector (LBA) */ | 59 | uint32_t start; /* first sector (LBA) */ |
57 | uint32_t size; /* number of sectors */ | 60 | uint32_t size; /* number of sectors */ |
@@ -86,8 +89,8 @@ int ipod_open(struct ipod_t* ipod, int silent); | |||
86 | int ipod_reopen_rw(struct ipod_t* ipod); | 89 | int ipod_reopen_rw(struct ipod_t* ipod); |
87 | int ipod_close(struct ipod_t* ipod); | 90 | int ipod_close(struct ipod_t* ipod); |
88 | int ipod_seek(struct ipod_t* ipod, unsigned long pos); | 91 | int ipod_seek(struct ipod_t* ipod, unsigned long pos); |
89 | int ipod_read(struct ipod_t* ipod, unsigned char* buf, int nbytes); | 92 | ssize_t ipod_read(struct ipod_t* ipod, unsigned char* buf, int nbytes); |
90 | int ipod_write(struct ipod_t* ipod, unsigned char* buf, int nbytes); | 93 | ssize_t ipod_write(struct ipod_t* ipod, unsigned char* buf, int nbytes); |
91 | int ipod_alloc_buffer(unsigned char** sectorbuf, int bufsize); | 94 | int ipod_alloc_buffer(unsigned char** sectorbuf, int bufsize); |
92 | 95 | ||
93 | /* In fat32format.c */ | 96 | /* In fat32format.c */ |