Rename maximum_size to max_size

The long option is --max-size, so for consistency, adapt the code
accordingly.
This commit is contained in:
Romain Vimont
2018-02-01 12:18:06 +01:00
parent 213b721ff9
commit ee93f3f23a
8 changed files with 30 additions and 28 deletions

View File

@@ -21,16 +21,16 @@ process_t disable_tunnel(const char *serial) {
return adb_reverse_remove(serial, SOCKET_NAME);
}
process_t start_server(const char *serial, Uint16 maximum_size) {
char maximum_size_string[6];
sprintf(maximum_size_string, "%d", maximum_size);
process_t start_server(const char *serial, Uint16 max_size) {
char max_size_string[6];
sprintf(max_size_string, "%d", max_size);
const char *const cmd[] = {
"shell",
"CLASSPATH=/data/local/tmp/scrcpy.apk",
"app_process",
"/", // unused
"com.genymobile.scrcpy.ScrCpyServer",
maximum_size_string,
max_size_string,
};
return adb_execute(serial, cmd, sizeof(cmd) / sizeof(cmd[0]));
}