mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-31 04:39:49 +08:00
Minor warning correction.
This fix resolves the warnings as printed below. ui.c: In function ‘PrintAndLogOptions’: ui.c:40:45: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=] snprintf(format, sizeof(format), "%%%us%%%us", space, counts[j]); ^ ui.c:40:50: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] snprintf(format, sizeof(format), "%%%us%%%us", space, counts[j]); ^ ui.c:42:54: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=] snprintf(format, sizeof(format), "%%%us%%-%us", space, counts[j]); ^ ui.c:42:60: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] snprintf(format, sizeof(format), "%%%us%%-%us", space, counts[j]);
This commit is contained in:
parent
5690c0f5bc
commit
fdda1d2961
1 changed files with 3 additions and 3 deletions
|
@ -37,9 +37,9 @@ void PrintAndLogOptions(char *str[][2], size_t size, size_t space)
|
|||
for(int j = 0; j < 2; j++)
|
||||
{
|
||||
if(j == 0)
|
||||
snprintf(format, sizeof(format), "%%%us%%%us", space, counts[j]);
|
||||
snprintf(format, sizeof(format), "%%%zus%%%zus", space, counts[j]);
|
||||
else
|
||||
snprintf(format, sizeof(format), "%%%us%%-%us", space, counts[j]);
|
||||
snprintf(format, sizeof(format), "%%%zus%%-%zus", space, counts[j]);
|
||||
snprintf(buff + strlen(buff), sizeof(buff) - strlen(buff), format, " ", str[i][j]);
|
||||
}
|
||||
if(i<size-1)
|
||||
|
|
Loading…
Reference in a new issue