fix cpp warnings

This commit is contained in:
iceman1001 committed 2025-03-21 13:19:01 +01:00
1 parent 1a437d4a18
commit a2d10d7910
8 files changed
+82 -62

No files matched your search

+5 -2
View File
@@ -210,7 +210,6 @@ static int process_hitagu_common_args(CLIParserContext *ctx, lf_hitag_data_t *co
int res = CLIParamHexToBuf(arg_get_str(ctx, 2), key, HITAG_PASSWORD_SIZE, &key_len);
if (res != 0) {
CLIParserFree(ctx);
return PM3_EINVARG;
}
@@ -341,6 +340,7 @@ static int CmdLFHitagURead(const char *Cmd) {
lf_hitag_data_t packet;
if (process_hitagu_common_args(ctx, &packet) < 0) {
CLIParserFree(ctx);
return PM3_EINVARG;
}
@@ -613,7 +613,10 @@ static int CmdLFHitagUWrite(const char *Cmd) {
lf_hitag_data_t packet;
if (process_hitagu_common_args(ctx, &packet) < 0) return PM3_EINVARG;
if (process_hitagu_common_args(ctx, &packet) < 0) {
CLIParserFree(ctx);
return PM3_EINVARG;
}
int page = arg_get_int_def(ctx, 3, 0);