summaryrefslogtreecommitdiffstats
path: root/utils/jz4740_tools/jz4740_usbtool.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-09-01 19:56:12 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-09-01 19:56:12 +0000
commitc9e31fba4dce2763f7beb0471e3186fdffeb5ae9 (patch)
treed8fd0dec0dec1788971fbc4a8b39e3a66accbacb /utils/jz4740_tools/jz4740_usbtool.c
parentda207a27152f3b4fbc9867eefe32e90f510777bf (diff)
downloadrockbox-c9e31fba4dce2763f7beb0471e3186fdffeb5ae9.tar.gz
rockbox-c9e31fba4dce2763f7beb0471e3186fdffeb5ae9.tar.bz2
rockbox-c9e31fba4dce2763f7beb0471e3186fdffeb5ae9.zip
Fix compiling of Jz4740 usbtool
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18380 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/jz4740_tools/jz4740_usbtool.c')
-rw-r--r--utils/jz4740_tools/jz4740_usbtool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/jz4740_tools/jz4740_usbtool.c b/utils/jz4740_tools/jz4740_usbtool.c
index 8a91b12ad9..b1aa198d23 100644
--- a/utils/jz4740_tools/jz4740_usbtool.c
+++ b/utils/jz4740_tools/jz4740_usbtool.c
@@ -549,7 +549,7 @@ int nand_dump(usb_dev_handle *dh)
fprintf(stderr, "[INFO] Reading data...\n");
err = usb_bulk_read(dh, USB_ENDPOINT_IN | EP_BULK_TO, (char*)buffer, LENGTH, TOUT);
- if (err != (size))
+ if (err != LENGTH)
{
fprintf(stderr,"\n[ERR] Error writing data\n");
fprintf(stderr,"[ERR] Bulk write error (%d, %s)\n", err, strerror(-err));
@@ -600,7 +600,7 @@ int rom_dump(usb_dev_handle *dh)
fprintf(stderr, "[INFO] Reading data...\n");
err = usb_bulk_read(dh, USB_ENDPOINT_IN | EP_BULK_TO, (char*)buffer, LENGTH, TOUT);
- if (err != (size))
+ if (err != LENGTH)
{
fprintf(stderr,"\n[ERR] Error writing data\n");
fprintf(stderr,"[ERR] Bulk write error (%d, %s)\n", err, strerror(-err));