Rename adb_command to adb_executable

Semantically, a "command" refers to the whole command line argv (adb and
its arguments).
pull/3005/head
Romain Vimont 2 years ago
parent 028e7afe32
commit ba30ca5c1e

@ -11,16 +11,16 @@
#include "util/process_intr.h"
#include "util/str.h"
static const char *adb_command;
static const char *adb_executable;
static inline const char *
get_adb_command(void) {
if (!adb_command) {
adb_command = getenv("ADB");
if (!adb_command)
adb_command = "adb";
get_adb_executable(void) {
if (!adb_executable) {
adb_executable = getenv("ADB");
if (!adb_executable)
adb_executable = "adb";
}
return adb_command;
return adb_executable;
}
// serialize argv to string "[arg1], [arg2], [arg3]"
@ -163,7 +163,7 @@ sc_adb_create_argv(const char *serial, const char *const adb_cmd[],
return NULL;
}
argv[0] = get_adb_command();
argv[0] = get_adb_executable();
int i;
if (serial) {
argv[1] = "-s";

Loading…
Cancel
Save