summaryrefslogtreecommitdiff
path: root/diskio-unix.cc
diff options
context:
space:
mode:
authorRod Smith <rodsmith@rodsbooks.com>2021-03-17 21:57:12 -0400
committerRod Smith <rodsmith@rodsbooks.com>2021-03-17 21:59:18 -0400
commiteae9f7e2e1470ed2d5bc029180aa2adc88fbc4a7 (patch)
treedd82bf5ca410609032f73fe888a56d9f29ee3c93 /diskio-unix.cc
parent80e66b25922ab78cf987f693bf5477e466b1443a (diff)
downloadsgdisk-eae9f7e2e1470ed2d5bc029180aa2adc88fbc4a7.tar.gz
Code cleanup based on 'infer' suggestions; mostly just dead stores.
One forgotten change
Diffstat (limited to 'diskio-unix.cc')
-rw-r--r--diskio-unix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/diskio-unix.cc b/diskio-unix.cc
index 4aefc6f..7780aeb 100644
--- a/diskio-unix.cc
+++ b/diskio-unix.cc
@@ -376,7 +376,7 @@ int DiskIO::Read(void* buffer, int numBytes) {
// size with the number of bytes read.
// Returns the number of bytes written.
int DiskIO::Write(void* buffer, int numBytes) {
- int blockSize = 512, i, numBlocks, retval = 0;
+ int blockSize, i, numBlocks, retval = 0;
char* tempSpace;
// If disk isn't open, try to open it....