summaryrefslogtreecommitdiffstats
path: root/heimdall/source/SendFilePartPacket.h
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2011-06-01 08:41:50 +0200
committerBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2011-06-01 08:41:50 +0200
commit1e2894839a1458c983b7387d4b2b8a453b726c9c (patch)
treec59e00a2c8a65def0e892764e28da6ae3d0eb18a /heimdall/source/SendFilePartPacket.h
parentLinux Makefile.am fixes. (diff)
downloadHeimdall-1e2894839a1458c983b7387d4b2b8a453b726c9c.tar
Heimdall-1e2894839a1458c983b7387d4b2b8a453b726c9c.tar.gz
Heimdall-1e2894839a1458c983b7387d4b2b8a453b726c9c.tar.bz2
Heimdall-1e2894839a1458c983b7387d4b2b8a453b726c9c.tar.lz
Heimdall-1e2894839a1458c983b7387d4b2b8a453b726c9c.tar.xz
Heimdall-1e2894839a1458c983b7387d4b2b8a453b726c9c.tar.zst
Heimdall-1e2894839a1458c983b7387d4b2b8a453b726c9c.zip
Diffstat (limited to '')
-rw-r--r--heimdall/source/SendFilePartPacket.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/heimdall/source/SendFilePartPacket.h b/heimdall/source/SendFilePartPacket.h
index 0b41830..7734e2a 100644
--- a/heimdall/source/SendFilePartPacket.h
+++ b/heimdall/source/SendFilePartPacket.h
@@ -51,7 +51,9 @@ namespace Heimdall
// min(fileSize, size)
int bytesToRead = (fileSize < size) ? fileSize - position : size;
- fread(data, 1, bytesToRead, file);
+
+ // bytesRead is discarded (it's just there to stop GCC warnings)
+ int bytesRead = fread(data, 1, bytesToRead, file);
}
void Pack(void)