Don't pass by reference

This commit is contained in:
topjohnwu 2019-09-26 03:49:05 -04:00
parent 578a50b464
commit 544bb7459c
2 changed files with 2 additions and 2 deletions

View File

@ -19,5 +19,5 @@ int cpio_commands(int argc, char *argv[]);
int dtb_commands(int argc, char *argv[]);
char *patch_verity(const void *buf, uint32_t &size, bool inplace = false);
void patch_encryption(void *&buf, uint32_t &size);
void patch_encryption(void *buf, uint32_t &size);
bool check_env(const char *name);

View File

@ -55,7 +55,7 @@ char *patch_verity(const void *buf, uint32_t &size, bool inplace) {
return patched;
}
void patch_encryption(void *&buf, uint32_t &size) {
void patch_encryption(void *buf, uint32_t &size) {
auto src = static_cast<char *>(buf);
int src_size = size;
int write = 0;