summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-02-04 23:41:47 +0000
committerDave Chapman <dave@dchapman.com>2007-02-04 23:41:47 +0000
commitc500b968b8adee127a90be0bcde7f8c445bc09a5 (patch)
treea1ad9cf8e022682269c66f633dee3e9b93421bd9 /tools
parent4da04b77e2a330ad67b89f6c71cb3fb60575d20b (diff)
downloadrockbox-c500b968b8adee127a90be0bcde7f8c445bc09a5.tar.gz
rockbox-c500b968b8adee127a90be0bcde7f8c445bc09a5.tar.bz2
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')
-rw-r--r--tools/ipodpatcher/ipodpatcher.c4
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);