Skip to content

Commit 8debd93

Browse files
committed
python: fix wrapping of wally_get_build_version()
1 parent e99f754 commit 8debd93

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

include/wally.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,8 @@ inline int free_string(char* str) {
820820
return detail::check_ret(__FUNCTION__, ret);
821821
}
822822

823-
inline int get_build_version(uint32_t* value) {
824-
int ret = ::wally_get_build_version(value);
823+
inline int get_build_version(uint32_t* value_out) {
824+
int ret = ::wally_get_build_version(value_out);
825825
return detail::check_ret(__FUNCTION__, ret);
826826
}
827827

include/wally_core.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ WALLY_CORE_API int wally_cleanup(uint32_t flags);
5353
/**
5454
* Get the version number of the library.
5555
*
56-
* :param value: Destination for the library build version. This is the
56+
* :param value_out: Destination for the library build version. This is the
5757
*| value of `WALLY_BUILD_VER` when the library was compiled.
5858
*/
5959
WALLY_CORE_API int wally_get_build_version(
60-
uint32_t *value);
60+
uint32_t *value_out);
6161

6262
#ifndef SWIG
6363
/**

src/internal.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ static secp256k1_context *global_ctx = NULL;
2020
/* Global extended error code. Not thread-safe unless caller-overridden */
2121
static int global_error = WALLY_OK;
2222

23-
int wally_get_build_version(uint32_t *value)
23+
int wally_get_build_version(uint32_t *value_out)
2424
{
25-
if (value)
26-
*value = WALLY_BUILD_VER;
27-
return value ? WALLY_OK : WALLY_EINVAL;
25+
if (value_out)
26+
*value_out = WALLY_BUILD_VER;
27+
return value_out ? WALLY_OK : WALLY_EINVAL;
2828
}
2929

3030
int pubkey_combine(secp256k1_pubkey *pubnonce, const secp256k1_pubkey *const *pubnonces, size_t n)

0 commit comments

Comments
 (0)