mirror of
https://github.com/Genymobile/scrcpy
synced 2025-01-18 13:11:46 +00:00
Remove local "serial" variable
In execute_server(), the serial is used only once. Moreover, it can be retrieved from the `params` argument directly.
This commit is contained in:
parent
d5f6697f3a
commit
5434ea543c
@ -139,8 +139,6 @@ log_level_to_server_string(enum sc_log_level level) {
|
||||
static sc_pid
|
||||
execute_server(struct sc_server *server,
|
||||
const struct sc_server_params *params) {
|
||||
const char *serial = server->params.serial;
|
||||
|
||||
char max_size_string[6];
|
||||
char bit_rate_string[11];
|
||||
char max_fps_string[6];
|
||||
@ -199,7 +197,7 @@ execute_server(struct sc_server *server,
|
||||
// Port: 5005
|
||||
// Then click on "Debug"
|
||||
#endif
|
||||
return adb_execute(serial, cmd, ARRAY_LEN(cmd));
|
||||
return adb_execute(params->serial, cmd, ARRAY_LEN(cmd));
|
||||
}
|
||||
|
||||
static bool
|
||||
|
Loading…
Reference in New Issue
Block a user