diff options
author | Dave Chapman <dave@dchapman.com> | 2007-02-04 23:41:47 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-02-04 23:41:47 +0000 |
commit | c500b968b8adee127a90be0bcde7f8c445bc09a5 (patch) | |
tree | a1ad9cf8e022682269c66f633dee3e9b93421bd9 /tools/ipodpatcher/ipodpatcher.c | |
parent | 4da04b77e2a330ad67b89f6c71cb3fb60575d20b (diff) | |
download | rockbox-c500b968b8adee127a90be0bcde7f8c445bc09a5.tar.gz rockbox-c500b968b8adee127a90be0bcde7f8c445bc09a5.zip |
Fix compile error on BSD and Mac OS and remove a warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12199 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/ipodpatcher/ipodpatcher.c')
-rw-r--r-- | tools/ipodpatcher/ipodpatcher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ipodpatcher/ipodpatcher.c b/tools/ipodpatcher/ipodpatcher.c index a7b441ae0d..2331734b4d 100644 --- a/tools/ipodpatcher/ipodpatcher.c +++ b/tools/ipodpatcher/ipodpatcher.c @@ -351,7 +351,7 @@ void print_usage(void) { #else #if defined(linux) || defined (__linux) fprintf(stderr,"\"device\" is the device node (e.g. /dev/sda) assigned to your ipod.\n"); -#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) \ +#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) fprintf(stderr,"\"device\" is the device node (e.g. /dev/da1) assigned to your ipod.\n"); #elif defined(__APPLE__) && defined(__MACH__) fprintf(stderr,"\"device\" is the device node (e.g. /dev/disk1) assigned to your ipod.\n"); @@ -649,7 +649,7 @@ int add_bootloader(struct ipod_t* ipod, char* filename, int type) /* Write directory */ if (ipod_seek(ipod, ipod->start + ipod->diroffset - x) < 0) { - fprintf(stderr,"[ERR] Seek to %ld failed\n", ipod->start+ipod->diroffset-x); + fprintf(stderr,"[ERR] Seek to %d failed\n", (int)(ipod->start+ipod->diroffset-x)); return -1; } n=ipod_write(ipod, sectorbuf, ipod->sector_size); |