diff options
author | Benjamin Dobell <benjamin.dobell+github@glassechidna.com.au> | 2011-06-01 08:41:50 +0200 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+github@glassechidna.com.au> | 2011-06-01 08:41:50 +0200 |
commit | 1e2894839a1458c983b7387d4b2b8a453b726c9c (patch) | |
tree | c59e00a2c8a65def0e892764e28da6ae3d0eb18a /heimdall/source/SendFilePartPacket.h | |
parent | Linux Makefile.am fixes. (diff) | |
download | Heimdall-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 'heimdall/source/SendFilePartPacket.h')
-rw-r--r-- | heimdall/source/SendFilePartPacket.h | 4 |
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)
|