fix a few cppcheck warnings

This commit is contained in:
Philippe Teuwen committed 2023-09-07 22:28:37 +02:00
1 parent d97f417ee6
commit 3aeb5c493f
13 files changed
+44 -41

No files matched your search

+2 -2
View File
@@ -606,7 +606,7 @@ static void show_help(bool showFullHelp, char *exec_name) {
}
}
static int flash_pm3(char *serial_port_name, uint8_t num_files, char *filenames[FLASH_MAX_FILES], bool can_write_bl, bool force) {
static int flash_pm3(char *serial_port_name, uint8_t num_files, const char *filenames[FLASH_MAX_FILES], bool can_write_bl, bool force) {
int ret = PM3_EUNDEF;
flash_file_t files[FLASH_MAX_FILES];
@@ -756,7 +756,7 @@ int main(int argc, char *argv[]) {
bool flash_force = false;
bool debug_mode_forced = false;
int flash_num_files = 0;
char *flash_filenames[FLASH_MAX_FILES];
const char *flash_filenames[FLASH_MAX_FILES];
// color management:
// 1. default = no color