summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-09-25 18:10:21 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-09-27 09:28:05 +0200
commit3806f57ed8a220358e701b4f29703dd3820ac686 (patch)
treef1059745765d9d10a152d422e3178f930278b8e9
parent0f23cadbca7abeedcb493d0612e250a0259ca33e (diff)
downloadrockbox-3806f57ed8a220358e701b4f29703dd3820ac686.tar.gz
rockbox-3806f57ed8a220358e701b4f29703dd3820ac686.tar.bz2
rockbox-3806f57ed8a220358e701b4f29703dd3820ac686.zip
ipodpatcher: Fix some type warnings.
Change-Id: I66fa99db3f4913bafa17a1e976cbfd08e26349ce
-rw-r--r--rbutil/ipodpatcher/ipodpatcher.c4
-rw-r--r--rbutil/ipodpatcher/ipodpatcher.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/rbutil/ipodpatcher/ipodpatcher.c b/rbutil/ipodpatcher/ipodpatcher.c
index 55f501dc6c..6df9060bdc 100644
--- a/rbutil/ipodpatcher/ipodpatcher.c
+++ b/rbutil/ipodpatcher/ipodpatcher.c
@@ -75,7 +75,7 @@ static const char *apple_stop_sign = "{{~~ /-----\\ "\
and initialise it with ipod_alloc_buf()
*/
-char* get_parttype(int pt)
+char* get_parttype(unsigned int pt)
{
int i;
static char unknown[]="Unknown";
@@ -1478,7 +1478,7 @@ int read_firmware(struct ipod_t* ipod, char* filename, int type)
int read_directory(struct ipod_t* ipod)
{
- int n;
+ ssize_t n;
int x;
unsigned char* p;
unsigned short version;
diff --git a/rbutil/ipodpatcher/ipodpatcher.h b/rbutil/ipodpatcher/ipodpatcher.h
index 01f5a1bb26..6f0498a4e0 100644
--- a/rbutil/ipodpatcher/ipodpatcher.h
+++ b/rbutil/ipodpatcher/ipodpatcher.h
@@ -40,7 +40,7 @@ extern int ipod_verbose;
#define FILETYPE_INTERNAL 2
#endif
-char* get_parttype(int pt);
+char* get_parttype(unsigned int pt);
int read_partinfo(struct ipod_t* ipod, int silent);
int read_partition(struct ipod_t* ipod, int outfile);
int write_partition(struct ipod_t* ipod, int infile);