From 08d32e3bae72d355a77fb72025a6e8ba481ac240 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Wed, 28 Feb 2018 15:02:51 +0100 Subject: [PATCH] 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. --- app/src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/command.c b/app/src/command.c index 266704b7..20851b3c 100644 --- a/app/src/command.c +++ b/app/src/command.c @@ -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)); }