From 92289ece61b5ad3ea0b0d50f0a9bf06efbfaf686 Mon Sep 17 00:00:00 2001 From: Chawye Hsu Date: Wed, 31 Mar 2021 01:11:53 +0800 Subject: [PATCH] fix: fix missing Sleep function on Windows and fix type warning Signed-off-by: Chawye Hsu --- keyhunt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/keyhunt.c b/keyhunt.c index 2661a2d..9b68227 100644 --- a/keyhunt.c +++ b/keyhunt.c @@ -20,6 +20,9 @@ email: alberto.bsd@gmail.com #include "custombloom/bloom.h" #include "sha3/sha3.h" #include "util.h" +#ifdef WIN32 + #include +#endif #define CRYPTO_NONE 0 #define CRYPTO_BTC 1 @@ -1458,7 +1461,7 @@ char *pubkeytopubaddress_eth(char *pkey,int length) { char *pubkeytopubaddress(char *pkey,int length) { char *pubaddress = calloc(MAXLENGTHADDRESS+10,1); char *digest = calloc(60,1); - long unsigned int pubaddress_size = MAXLENGTHADDRESS+10; + size_t pubaddress_size = MAXLENGTHADDRESS+10; if(pubaddress == NULL || digest == NULL) { fprintf(stderr,"error malloc()\n"); exit(0);