diff options
| author | Greg Kaiser <gkaiser@google.com> | 2018-12-18 12:34:07 -0800 |
|---|---|---|
| committer | Greg Kaiser <gkaiser@google.com> | 2018-12-20 19:52:20 -0800 |
| commit | 110acfb8c483660cbe0c0e22aec35bc8cae25eb0 (patch) | |
| tree | 7f5de320d1b6a97a64825490563385a15e7faa0a /EncryptInplace.cpp | |
| parent | 4106664485d5e8c39045fd800639daad2bdf7a85 (diff) | |
EncryptInplace: Rename variable
We rename our 'buf' in the inner scope to avoid confusion with
the 'buf' in the outer scope which is used immediately after
exiting the inner scope.
Test: TreeHugger
Change-Id: I1c50546e86c680e963eedcbda26138f8b43e55e9
Diffstat (limited to 'EncryptInplace.cpp')
| -rw-r--r-- | EncryptInplace.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/EncryptInplace.cpp b/EncryptInplace.cpp index d559bff..f55932d 100644 --- a/EncryptInplace.cpp +++ b/EncryptInplace.cpp @@ -524,11 +524,11 @@ static int cryptfs_enable_inplace_full(char* crypto_blkdev, char* real_blkdev, o for (i /= CRYPT_SECTORS_PER_BUFSIZE; i < numblocks; i++) { new_pct = (i + blocks_already_done) / one_pct; if (set_progress_properties && new_pct > cur_pct) { - char buf[8]; + char property_buf[8]; cur_pct = new_pct; - snprintf(buf, sizeof(buf), "%" PRId64, cur_pct); - android::base::SetProperty("vold.encrypt_progress", buf); + snprintf(property_buf, sizeof(property_buf), "%" PRId64, cur_pct); + android::base::SetProperty("vold.encrypt_progress", property_buf); } if (unix_read(realfd, buf, CRYPT_INPLACE_BUFSIZE) <= 0) { PLOG(ERROR) << "Error reading real_blkdev " << real_blkdev << " for inplace encrypt"; |
