mirror of
https://github.com/nfc-tools/mfcuk.git
synced 2026-03-10 09:33:49 +00:00
Suppress some warnings (discards ‘const’ qualifier from pointer target type): functions that manipulate filename does not overwrite it
This commit is contained in:
@@ -321,7 +321,7 @@ void test_mifare_classic_blocks_sectors_functions(uint8_t bTagType)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool mfcuk_save_tag_dump(char *filename, mifare_classic_tag *tag)
|
bool mfcuk_save_tag_dump(const char *filename, mifare_classic_tag *tag)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
size_t result;
|
size_t result;
|
||||||
@@ -346,7 +346,7 @@ bool mfcuk_save_tag_dump(char *filename, mifare_classic_tag *tag)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool mfcuk_save_tag_dump_ext(char *filename, mifare_classic_tag_ext *tag_ext)
|
bool mfcuk_save_tag_dump_ext(const char *filename, mifare_classic_tag_ext *tag_ext)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
size_t result;
|
size_t result;
|
||||||
@@ -371,7 +371,7 @@ bool mfcuk_save_tag_dump_ext(char *filename, mifare_classic_tag_ext *tag_ext)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool mfcuk_load_tag_dump(char *filename, mifare_classic_tag *tag)
|
bool mfcuk_load_tag_dump(const char *filename, mifare_classic_tag *tag)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
size_t result;
|
size_t result;
|
||||||
@@ -396,7 +396,7 @@ bool mfcuk_load_tag_dump(char *filename, mifare_classic_tag *tag)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool mfcuk_load_tag_dump_ext(char *filename, mifare_classic_tag_ext *tag_ext)
|
bool mfcuk_load_tag_dump_ext(const char *filename, mifare_classic_tag_ext *tag_ext)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
size_t result;
|
size_t result;
|
||||||
|
|||||||
@@ -134,10 +134,10 @@ bool is_last_sector(uint8_t bTagType, uint32_t uiSector);
|
|||||||
bool is_last_big_sector(uint8_t bTagType, uint32_t uiSector);
|
bool is_last_big_sector(uint8_t bTagType, uint32_t uiSector);
|
||||||
bool is_last_small_sector(uint8_t bTagType, uint32_t uiSector);
|
bool is_last_small_sector(uint8_t bTagType, uint32_t uiSector);
|
||||||
void test_mifare_classic_blocks_sectors_functions(uint8_t bTagType);
|
void test_mifare_classic_blocks_sectors_functions(uint8_t bTagType);
|
||||||
bool mfcuk_save_tag_dump(char *filename, mifare_classic_tag *tag);
|
bool mfcuk_save_tag_dump(const char *filename, mifare_classic_tag *tag);
|
||||||
bool mfcuk_save_tag_dump_ext(char *filename, mifare_classic_tag_ext *tag_ext);
|
bool mfcuk_save_tag_dump_ext(const char *filename, mifare_classic_tag_ext *tag_ext);
|
||||||
bool mfcuk_load_tag_dump(char *filename, mifare_classic_tag *tag);
|
bool mfcuk_load_tag_dump(const char *filename, mifare_classic_tag *tag);
|
||||||
bool mfcuk_load_tag_dump_ext(char *filename, mifare_classic_tag_ext *tag_ext);
|
bool mfcuk_load_tag_dump_ext(const char *filename, mifare_classic_tag_ext *tag_ext);
|
||||||
void print_mifare_classic_tag_keys(const char *title, mifare_classic_tag *tag);
|
void print_mifare_classic_tag_keys(const char *title, mifare_classic_tag *tag);
|
||||||
bool mfcuk_key_uint64_to_arr(const uint64_t *ui64Key, uint8_t *arr6Key);
|
bool mfcuk_key_uint64_to_arr(const uint64_t *ui64Key, uint8_t *arr6Key);
|
||||||
bool mfcuk_key_arr_to_uint64(const uint8_t *arr6Key, uint64_t *ui64Key);
|
bool mfcuk_key_arr_to_uint64(const uint8_t *arr6Key, uint64_t *ui64Key);
|
||||||
|
|||||||
Reference in New Issue
Block a user