Skip to content

Commit

Permalink
make Clang happy
Browse files Browse the repository at this point in the history
  • Loading branch information
sudden6 committed Dec 16, 2021
1 parent b55a08f commit 4f9a03f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion other/fun/cracker.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#include <sodium/crypto_scalarmult_curve25519.h>
#include <sodium/randombytes.h>

/* NULL compatibility macro */
#include "../../toxcore/ccompat.h"

#define KEY_LEN 32
// Maximum number of bytes this program can crack in one run
#define MAX_CRACK_BYTES 8
Expand Down Expand Up @@ -151,7 +154,7 @@ static void cracker_core(uint64_t range_start, uint64_t range_end, uint64_t rang
}
}

void print_stats(double seconds_passed, double keys_tried)
static void print_stats(double seconds_passed, double keys_tried)
{
printf("Runtime: %10lus, Keys tried %e/%e, Calculating %e keys/s\n",
(unsigned long) seconds_passed, keys_tried, (double) UINT64_MAX, keys_tried / seconds_passed);
Expand Down

0 comments on commit 4f9a03f

Please sign in to comment.