summaryrefslogtreecommitdiff
path: root/rbutil/ipodpatcher
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-07-29 21:34:28 +0000
committerDave Chapman <dave@dchapman.com>2007-07-29 21:34:28 +0000
commit33bc6f3e3c8c67a43b6dc9ce7cc92405c016b187 (patch)
tree3d8476353f97f79ddc076d3e1e7e570efa906e52 /rbutil/ipodpatcher
parent0be3036a20fc7cde87663caa053adf512bd7ab92 (diff)
Yet more warning fixes - ipodpatcher should now be warning-free in rbutilqt
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14068 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/ipodpatcher')
-rw-r--r--rbutil/ipodpatcher/ipodpatcher.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/rbutil/ipodpatcher/ipodpatcher.c b/rbutil/ipodpatcher/ipodpatcher.c
index fb7611dbad..7459b5da87 100644
--- a/rbutil/ipodpatcher/ipodpatcher.c
+++ b/rbutil/ipodpatcher/ipodpatcher.c
@@ -966,10 +966,16 @@ int read_firmware(struct ipod_t* ipod, char* filename, int type)
int2be(chksum,header);
memcpy(header+4, ipod->modelname,4);
- write(outfile,header,8);
+ n = write(outfile,header,8);
+ if (n != 8) {
+ fprintf(stderr,"[ERR] Write error - %d\n",n);
+ }
}
- write(outfile,sectorbuf,length);
+ n = write(outfile,sectorbuf,length);
+ if (n != length) {
+ fprintf(stderr,"[ERR] Write error - %d\n",n);
+ }
close(outfile);
return 0;