Merge "Fix ioctl parameter" am: 0eaad8ce8c am: 5cd32f73d8

am: 8185d3d8ba

* commit '8185d3d8ba3dec0f26ade8cd4764d5f09cc00bcc':
  Fix ioctl parameter
gugelfrei
Elliott Hughes 9 years ago committed by android-build-merger
commit 46c7b09e39

@ -526,7 +526,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