forked from len0rd/rockbox
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
This commit is contained in:
parent
0be3036a20
commit
33bc6f3e3c
1 changed files with 8 additions and 2 deletions
|
|
@ -966,10 +966,16 @@ int read_firmware(struct ipod_t* ipod, char* filename, int type)
|
||||||
int2be(chksum,header);
|
int2be(chksum,header);
|
||||||
memcpy(header+4, ipod->modelname,4);
|
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);
|
close(outfile);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue