Don't pass by reference
This commit is contained in:
parent
578a50b464
commit
544bb7459c
@ -19,5 +19,5 @@ int cpio_commands(int argc, char *argv[]);
|
|||||||
int dtb_commands(int argc, char *argv[]);
|
int dtb_commands(int argc, char *argv[]);
|
||||||
|
|
||||||
char *patch_verity(const void *buf, uint32_t &size, bool inplace = false);
|
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);
|
bool check_env(const char *name);
|
||||||
|
@ -55,7 +55,7 @@ char *patch_verity(const void *buf, uint32_t &size, bool inplace) {
|
|||||||
return patched;
|
return patched;
|
||||||
}
|
}
|
||||||
|
|
||||||
void patch_encryption(void *&buf, uint32_t &size) {
|
void patch_encryption(void *buf, uint32_t &size) {
|
||||||
auto src = static_cast<char *>(buf);
|
auto src = static_cast<char *>(buf);
|
||||||
int src_size = size;
|
int src_size = size;
|
||||||
int write = 0;
|
int write = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user