提交 08d32e3b 编写于 作者: R Romain Vimont

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.
上级 487cb10c
......@@ -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) {
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));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册