Merge "Fix ioctl parameter"

gugelfrei
Elliott Hughes 9 years ago committed by Gerrit Code Review
commit 0eaad8ce8c

@ -504,7 +504,7 @@ status_t WipeBlockDevice(const std::string& path) {
goto done;
}
if ((ioctl(fd, BLKGETSIZE, nr_sec)) == -1) {
if ((ioctl(fd, BLKGETSIZE, &nr_sec)) == -1) {
PLOG(ERROR) << "Failed to determine size of " << path;
goto done;
}

Loading…
Cancel
Save