mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 02:25:28 +00:00
Use const char*
This commit is contained in:
parent
6add02702b
commit
6dc9ccad75
@ -370,7 +370,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
if (cmd.skip_initramfs) {
|
||||
// Clear rootfs
|
||||
excl_list = (char *[]) { "overlay", ".backup", "proc", "sys", "init.bak", NULL };
|
||||
excl_list = (const char *[]) { "overlay", ".backup", "proc", "sys", "init.bak", NULL };
|
||||
frm_rf(root);
|
||||
} else {
|
||||
// Revert original init binary
|
||||
@ -399,7 +399,7 @@ int main(int argc, char *argv[]) {
|
||||
int system_root = open("/system_root", O_RDONLY | O_CLOEXEC);
|
||||
|
||||
// Clone rootfs except /system
|
||||
excl_list = (char *[]) { "system", NULL };
|
||||
excl_list = (const char *[]) { "system", NULL };
|
||||
clone_dir(system_root, root);
|
||||
close(system_root);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include "utils.h"
|
||||
#include "selinux.h"
|
||||
|
||||
char **excl_list = NULL;
|
||||
const char **excl_list = NULL;
|
||||
|
||||
static int is_excl(const char *name) {
|
||||
if (excl_list)
|
||||
|
@ -109,7 +109,7 @@ int __fsetxattr(int fd, const char *name, const void *value, size_t size, int fl
|
||||
#define align(p, a) (((p) + (a) - 1) / (a) * (a))
|
||||
#define align_off(p, a) (align(p, a) - (p))
|
||||
|
||||
extern char **excl_list;
|
||||
extern const char **excl_list;
|
||||
|
||||
struct file_attr {
|
||||
struct stat st;
|
||||
|
Loading…
Reference in New Issue
Block a user