From 1d9d3815e50153343b6edb88cd2378071c7fe073 Mon Sep 17 00:00:00 2001 From: Payne Date: Sat, 22 Sep 2018 03:42:02 +0800 Subject: crypto/secp256k1: remove useless code (#17728) `(void)data;` may cause link error on Windows. --- crypto/secp256k1/libsecp256k1/src/secp256k1.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'crypto') diff --git a/crypto/secp256k1/libsecp256k1/src/secp256k1.c b/crypto/secp256k1/libsecp256k1/src/secp256k1.c index fb8b882fa..7d637bfad 100755 --- a/crypto/secp256k1/libsecp256k1/src/secp256k1.c +++ b/crypto/secp256k1/libsecp256k1/src/secp256k1.c @@ -26,7 +26,6 @@ } while(0) static void default_illegal_callback_fn(const char* str, void* data) { - (void)data; fprintf(stderr, "[libsecp256k1] illegal argument: %s\n", str); abort(); } @@ -37,7 +36,6 @@ static const secp256k1_callback default_illegal_callback = { }; static void default_error_callback_fn(const char* str, void* data) { - (void)data; fprintf(stderr, "[libsecp256k1] internal consistency check failed: %s\n", str); abort(); } -- cgit v1.2.3 From 6663e5da10e7198f7ff5e883fd857240e59d476c Mon Sep 17 00:00:00 2001 From: Liang ZOU Date: Tue, 25 Sep 2018 18:26:35 +0800 Subject: all: fix various comment typos (#17748) --- crypto/secp256k1/libsecp256k1/src/num.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto') diff --git a/crypto/secp256k1/libsecp256k1/src/num.h b/crypto/secp256k1/libsecp256k1/src/num.h index 7bb9c5be8..eff842200 100644 --- a/crypto/secp256k1/libsecp256k1/src/num.h +++ b/crypto/secp256k1/libsecp256k1/src/num.h @@ -54,7 +54,7 @@ static void secp256k1_num_mul(secp256k1_num *r, const secp256k1_num *a, const se even if r was negative. */ static void secp256k1_num_mod(secp256k1_num *r, const secp256k1_num *m); -/** Right-shift the passed number by bits bits. */ +/** Right-shift the passed number by bits. */ static void secp256k1_num_shift(secp256k1_num *r, int bits); /** Check whether a number is zero. */ -- cgit v1.2.3