summaryrefslogtreecommitdiffstats
path: root/src/restore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/restore.c')
-rw-r--r--src/restore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/restore.c b/src/restore.c
index e220598..cec70ce 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -2085,7 +2085,7 @@ static int restore_sign_bbfw(const char* bbfwtmp, plist_t bbtss, const unsigned
logger(LL_ERROR, "can't match element name '%s' to baseband firmware file name.\n", key);
goto leave;
}
- char* ext = strrchr(signfn, '.');
+ const char* ext = strrchr(signfn, '.');
if (!strcmp(ext, ".fls")) {
is_fls = 1;
}
@@ -2211,7 +2211,7 @@ static int restore_sign_bbfw(const char* bbfwtmp, plist_t bbtss, const unsigned
const char* fn = zip_get_name(za, i, 0);
if (!keep) {
if (fn) {
- char* ext = strrchr(fn, '.');
+ const char* ext = strrchr(fn, '.');
if (ext && (!strcmp(ext, ".fls") || !strcmp(ext, ".mbn") || !strcmp(ext, ".elf") || !strcmp(ext, ".bin"))) {
keep = 1;
}