mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-14 01:03:01 -07:00
fix clang compiler warnings
identified in http://www.proxmark.org/forum/viewtopic.php?id=5388
This commit is contained in:
parent
30bb6d6591
commit
ec0872181b
5 changed files with 14 additions and 45 deletions
|
@ -297,9 +297,9 @@ int main(int argc, char **argv)
|
|||
}
|
||||
infiles = calloc(num_input_files, sizeof(FILE*));
|
||||
for (uint16_t i = 0; i < num_input_files; i++) {
|
||||
infiles[i] = fopen(argv[i+hardnested_mode?2:1], "rb");
|
||||
infiles[i] = fopen(argv[i+(hardnested_mode?2:1)], "rb");
|
||||
if (infiles[i] == NULL) {
|
||||
fprintf(stderr, "Error. Cannot open input file %s", argv[i+hardnested_mode?2:1]);
|
||||
fprintf(stderr, "Error. Cannot open input file %s", argv[i+(hardnested_mode?2:1)]);
|
||||
return(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue