mirror of
https://github.com/wiire-a/pixiewps.git
synced 2025-07-28 00:04:38 +02:00
Added casts to correct types when printing elapsed time
This fixes a warning on macOS due to tv_usec being of type int32_t.
This commit is contained in:
parent
f8c295c5b5
commit
ce5d96b661
@ -859,7 +859,7 @@ usage_err:
|
|||||||
else {
|
else {
|
||||||
printf("\n [-] WPA-PSK not found!");
|
printf("\n [-] WPA-PSK not found!");
|
||||||
}
|
}
|
||||||
printf("\n\n [*] Time taken: %lu s %lu ms\n\n", diff.tv_sec, diff.tv_usec / 1000);
|
printf("\n\n [*] Time taken: %lu s %lu ms\n\n", (unsigned long)diff.tv_sec, (unsigned long)(diff.tv_usec / 1000));
|
||||||
|
|
||||||
if (wps->e_hash1) free(wps->e_hash1);
|
if (wps->e_hash1) free(wps->e_hash1);
|
||||||
if (wps->e_hash2) free(wps->e_hash2);
|
if (wps->e_hash2) free(wps->e_hash2);
|
||||||
@ -1440,7 +1440,7 @@ usage_err:
|
|||||||
else {
|
else {
|
||||||
printf("\n [-] WPS pin not found!");
|
printf("\n [-] WPS pin not found!");
|
||||||
}
|
}
|
||||||
printf("\n\n [*] Time taken: %lu s %lu ms\n\n", diff.tv_sec, diff.tv_usec / 1000);
|
printf("\n\n [*] Time taken: %lu s %lu ms\n\n", (unsigned long)diff.tv_sec, (unsigned long)(diff.tv_usec / 1000));
|
||||||
|
|
||||||
if (wps->warning) {
|
if (wps->warning) {
|
||||||
printf("%s", wps->warning);
|
printf("%s", wps->warning);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user