From f786d231fc3bc73b5bdeb4aecb8ce8e6c8106dc8 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Wed, 29 Apr 2015 12:56:11 +0200 Subject: [PATCH] Use internal API in GO bridge - Also proper place of const in some C function signatures --- ethash.h | 2 +- internal.c | 4 ++-- internal.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ethash.h b/ethash.h index ea94fd762..b8ad2255a 100644 --- a/ethash.h +++ b/ethash.h @@ -88,7 +88,7 @@ void ethash_light_delete(ethash_light_t light); */ ethash_return_value_t ethash_light_compute( ethash_light_t light, - const ethash_h256_t header_hash, + ethash_h256_t const header_hash, uint64_t nonce ); diff --git a/internal.c b/internal.c index 9e6d3a9eb..3d598a26c 100644 --- a/internal.c +++ b/internal.c @@ -332,7 +332,7 @@ bool ethash_light_compute_internal( ethash_return_value_t* ret, ethash_light_t light, uint64_t full_size, - const ethash_h256_t header_hash, + ethash_h256_t const header_hash, uint64_t nonce ) { @@ -349,7 +349,7 @@ bool ethash_light_compute_internal( ethash_return_value_t ethash_light_compute( ethash_light_t light, - const ethash_h256_t header_hash, + ethash_h256_t const header_hash, uint64_t const nonce ) { diff --git a/internal.h b/internal.h index bb622177d..a73b5ad30 100644 --- a/internal.h +++ b/internal.h @@ -101,7 +101,7 @@ bool ethash_light_compute_internal( ethash_return_value_t* ret, ethash_light_t light, uint64_t full_size, - const ethash_h256_t header_hash, + ethash_h256_t const header_hash, uint64_t const nonce );