From 5020cd1bbf7829100da552aed7165572038ceb05 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 28 Sep 2018 01:25:43 -0400 Subject: [PATCH] Small cleanup --- native/jni/daemon/magisk.c | 2 +- native/jni/include/magisk.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/native/jni/daemon/magisk.c b/native/jni/daemon/magisk.c index b0d577425..cca109570 100644 --- a/native/jni/daemon/magisk.c +++ b/native/jni/daemon/magisk.c @@ -10,7 +10,7 @@ #include "selinux.h" #include "flags.h" -int create_links(const char *bin, const char *path) { +static int create_links(const char *bin, const char *path) { char self[PATH_MAX], linkpath[PATH_MAX]; if (bin == NULL) { xreadlink("/proc/self/exe", self, sizeof(self)); diff --git a/native/jni/include/magisk.h b/native/jni/include/magisk.h index e9b4865e7..73aa40581 100644 --- a/native/jni/include/magisk.h +++ b/native/jni/include/magisk.h @@ -47,8 +47,6 @@ extern char *argv0; /* For changing process name */ extern int (*applet_main[]) (int, char *[]), (*init_applet_main[]) (int, char *[]); -int create_links(const char *bin, const char *path); - // Multi-call entrypoints int magisk_main(int argc, char *argv[]); int magiskhide_main(int argc, char *argv[]);