summaryrefslogtreecommitdiff
path: root/Utils.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-10-29 20:44:35 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-10-29 20:44:35 +0000
commit8185d3d8ba3dec0f26ade8cd4764d5f09cc00bcc (patch)
tree5ccc47b9354d15cc40f2c4ea520c7f47372fe53c /Utils.cpp
parentaebfa6e7eee173b8e02f869c3a25cfe2a5fffb9b (diff)
parent5cd32f73d8b5e6db60d397d102e5b1b193a76c77 (diff)
Merge "Fix ioctl parameter" am: 0eaad8ce8c
am: 5cd32f73d8 * commit '5cd32f73d8b5e6db60d397d102e5b1b193a76c77': Fix ioctl parameter
Diffstat (limited to 'Utils.cpp')
-rw-r--r--Utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utils.cpp b/Utils.cpp
index 279c990..d4618af 100644
--- a/Utils.cpp
+++ b/Utils.cpp
@@ -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;
}