iceman1001 / proxmark3

[Deprecated] Iceman Fork, the most totally wicked fork around if you are into proxmark3
http://www.icedev.se/pm3.aspx
GNU General Public License v2.0
464 stars 116 forks source link

Minor warning correction. #202

Closed k02a closed 6 years ago

k02a commented 6 years ago

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]);

iceman1001 commented 6 years ago

Thanks!, I searched the project and we use the %zu in other places.