Clean up useless const-casts

The function adb_execute() now expects a "const char *const *" parameter
for the adb command, so there is no need to cast.
This commit is contained in:
Romain Vimont 2018-02-28 15:02:51 +01:00
parent 487cb10cf0
commit 08d32e3bae

View file

@ -62,7 +62,7 @@ process_t adb_reverse_remove(const char *serial, const char *device_socket_name)
} }
process_t adb_push(const char *serial, const char *local, const char *remote) { process_t adb_push(const char *serial, const char *local, const char *remote) {
const char *const adb_cmd[] = {"push", (char *) local, (char *) remote}; const char *const adb_cmd[] = {"push", local, remote};
return adb_execute(serial, adb_cmd, ARRAY_LEN(adb_cmd)); return adb_execute(serial, adb_cmd, ARRAY_LEN(adb_cmd));
} }