From e9d06e0ec5d128327334be27f76e82dad6489dd2 Mon Sep 17 00:00:00 2001 From: dxl <64101226@qq.com> Date: Wed, 20 May 2020 16:33:21 +0800 Subject: [PATCH] Follow naming conventions. --- client/android/pm3_main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/android/pm3_main.c b/client/android/pm3_main.c index b1e388cce..d35ae25fc 100644 --- a/client/android/pm3_main.c +++ b/client/android/pm3_main.c @@ -45,23 +45,23 @@ int push_cmdscriptfile(char *path, bool stayafter) { return PM3_SUCCESS; } -static char *my_executable_path = NULL; -static char *my_executable_directory = NULL; +static char *g_android_my_executable_path = NULL; +static char *g_android_my_executable_directory = NULL; const char *get_my_executable_path(void) { - return my_executable_path; + return g_android_my_executable_path; } const char *get_my_executable_directory(void) { - if (my_executable_directory != NULL) free(my_executable_directory); + if (g_android_my_executable_directory != NULL) free(g_android_my_executable_directory); char buf[1024]; // get current work directory getcwd(buf, sizeof(buf)); // add / to end. sprintf(buf, "%s%s", buf, PATHSEP); // create on global - my_executable_directory = strdup(buf); - return my_executable_directory; + g_android_my_executable_directory = strdup(buf); + return g_android_my_executable_directory; } static void set_my_executable_path(void) {