mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-04 16:17:39 +00:00
Small cleanup
This commit is contained in:
parent
cce636224c
commit
5020cd1bbf
@ -10,7 +10,7 @@
|
|||||||
#include "selinux.h"
|
#include "selinux.h"
|
||||||
#include "flags.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];
|
char self[PATH_MAX], linkpath[PATH_MAX];
|
||||||
if (bin == NULL) {
|
if (bin == NULL) {
|
||||||
xreadlink("/proc/self/exe", self, sizeof(self));
|
xreadlink("/proc/self/exe", self, sizeof(self));
|
||||||
|
@ -47,8 +47,6 @@ extern char *argv0; /* For changing process name */
|
|||||||
|
|
||||||
extern int (*applet_main[]) (int, char *[]), (*init_applet_main[]) (int, char *[]);
|
extern int (*applet_main[]) (int, char *[]), (*init_applet_main[]) (int, char *[]);
|
||||||
|
|
||||||
int create_links(const char *bin, const char *path);
|
|
||||||
|
|
||||||
// Multi-call entrypoints
|
// Multi-call entrypoints
|
||||||
int magisk_main(int argc, char *argv[]);
|
int magisk_main(int argc, char *argv[]);
|
||||||
int magiskhide_main(int argc, char *argv[]);
|
int magiskhide_main(int argc, char *argv[]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user