Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
544bb745
Commit
544bb745
authored
Sep 26, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't pass by reference
parent
578a50b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
magiskboot.h
native/jni/magiskboot/magiskboot.h
+1
-1
pattern.cpp
native/jni/magiskboot/pattern.cpp
+1
-1
No files found.
native/jni/magiskboot/magiskboot.h
View file @
544bb745
...
@@ -19,5 +19,5 @@ int cpio_commands(int argc, char *argv[]);
...
@@ -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
);
native/jni/magiskboot/pattern.cpp
View file @
544bb745
...
@@ -55,7 +55,7 @@ char *patch_verity(const void *buf, uint32_t &size, bool inplace) {
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment