commit | 9102b0b1757cea7abe1217efda6943d23292fed8 | [log] [tgz] |
---|---|---|
author | caozhiyuan <cao.zhiyuan@zte.com.cn> | Thu Oct 29 16:39:00 2015 +0800 |
committer | Alvin Cao <|account-1073563@45.22.194.245> | Thu Oct 29 08:48:20 2015 +0000 |
tree | aa0d8d27d278465cd992b0deba915d0699fde4a3 | |
parent | 7d17af08a80c3d9a14a3fe11d70bd12d59641a7b [diff] [blame] |
Fix ioctl parameter Change-Id: I922c8ae77056db81bc5152346299a07a34c527d2
diff --git a/Utils.cpp b/Utils.cpp index 51ef4c4..2dd9ae8 100644 --- a/Utils.cpp +++ b/Utils.cpp
@@ -504,7 +504,7 @@ 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; }