mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +00:00
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[]);
|
||||
|
||||
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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user