From 2a705d3a44c8e0d24da0c3a71940711ce18e0014 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 15 Feb 2022 03:14:06 +0100 Subject: [PATCH] make style --- client/src/cmdhw.c | 2 +- client/src/flash.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/cmdhw.c b/client/src/cmdhw.c index c6d4be8da..a29338d24 100644 --- a/client/src/cmdhw.c +++ b/client/src/cmdhw.c @@ -1077,7 +1077,7 @@ void pm3_version(bool verbose, bool oneliner) { if (ptr != NULL) { ptr = strstr(ptr, "\n"); if ((ptr != NULL) && (strlen(g_version_information.armsrc) == 9)) { - if (strncmp(ptr-9, g_version_information.armsrc, 9) != 0) { + if (strncmp(ptr - 9, g_version_information.armsrc, 9) != 0) { armsrc_mismatch = true; } } diff --git a/client/src/flash.c b/client/src/flash.c index 78365c940..7da19840f 100644 --- a/client/src/flash.c +++ b/client/src/flash.c @@ -345,8 +345,8 @@ int flash_check(flash_file_t *ctx, const char *name) { goto fail; } - for(uint16_t i=0; iarmsrc, g_version_information.armsrc, 9) != 0) { - PrintAndLogEx(WARNING, _RED_("ARM firmware does not match the source at the time the client was compiled")); - PrintAndLogEx(WARNING, "Make sure to flash a correct and up-to-date version"); + PrintAndLogEx(WARNING, _RED_("ARM firmware does not match the source at the time the client was compiled")); + PrintAndLogEx(WARNING, "Make sure to flash a correct and up-to-date version"); // TODO: prompt user to continue or abort } }