aboutsummaryrefslogtreecommitdiffstats
path: root/heimdall/source/SendFilePartPacket.h
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2011-06-01 16:41:50 +1000
committerBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2011-06-01 16:41:50 +1000
commit1e2894839a1458c983b7387d4b2b8a453b726c9c (patch)
treec59e00a2c8a65def0e892764e28da6ae3d0eb18a /heimdall/source/SendFilePartPacket.h
parentda48d031c941afe1a62afb3f2eaf1c6bbee7300d (diff)
downloadexternal_heimdall-1e2894839a1458c983b7387d4b2b8a453b726c9c.zip
external_heimdall-1e2894839a1458c983b7387d4b2b8a453b726c9c.tar.gz
external_heimdall-1e2894839a1458c983b7387d4b2b8a453b726c9c.tar.bz2
More linux-specific fixes/changes.
Diffstat (limited to 'heimdall/source/SendFilePartPacket.h')
-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)