diff options
Diffstat (limited to 'adb/commandline.cpp')
-rw-r--r-- | adb/commandline.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/adb/commandline.cpp b/adb/commandline.cpp index d38588f..cd635ce 100644 --- a/adb/commandline.cpp +++ b/adb/commandline.cpp @@ -463,7 +463,7 @@ static int adb_download_buffer(const char *service, const char *fn, const void* const uint8_t* ptr = reinterpret_cast<const uint8_t*>(data); if (show_progress) { - char *x = strrchr(service, ':'); + char *x = (char*) strrchr(service, ':'); if(x) service = x + 1; } @@ -1569,7 +1569,7 @@ static int install_app(transport_type transport, const char* serial, int argc, int last_apk = -1; for (i = argc - 1; i >= 0; i--) { const char* file = argv[i]; - char* dot = strrchr(file, '.'); + char* dot = (char*) strrchr(file, '.'); if (dot && !strcasecmp(dot, ".apk")) { if (stat(file, &sb) == -1 || !S_ISREG(sb.st_mode)) { fprintf(stderr, "Invalid APK file: %s\n", file); @@ -1615,7 +1615,7 @@ static int install_multiple_app(transport_type transport, const char* serial, in int first_apk = -1; for (i = argc - 1; i >= 0; i--) { const char* file = argv[i]; - char* dot = strrchr(file, '.'); + char* dot = (char*) strrchr(file, '.'); if (dot && !strcasecmp(dot, ".apk")) { if (stat(file, &sb) == -1 || !S_ISREG(sb.st_mode)) { fprintf(stderr, "Invalid APK file: %s\n", file); |