sdk/bpf/c: fix sol_get_return_data signature (#26525)

This commit is contained in:
Richard Patel 2022-07-19 09:30:29 +02:00 committed by GitHub
parent a6c41367aa
commit 4163dc181e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -41,10 +41,10 @@ static void sol_set_return_data(const uint8_t * arg1, uint64_t arg2) {
* @param result length of return data (may exceed bytes_len if the return data is longer)
*/
#ifndef SOL_SBFV2
uint64_t sol_get_return_data(const uint8_t *, uint64_t, SolPubkey *);
uint64_t sol_get_return_data(uint8_t *, uint64_t, SolPubkey *);
#else
typedef uint64_t(*sol_get_return_data_pointer_type)(const uint8_t *, uint64_t, SolPubkey *);
static uint64_t sol_get_return_data(const uint8_t * arg1, uint64_t arg2, SolPubkey * arg3) {
typedef uint64_t(*sol_get_return_data_pointer_type)(uint8_t *, uint64_t, SolPubkey *);
static uint64_t sol_get_return_data(uint8_t * arg1, uint64_t arg2, SolPubkey * arg3) {
sol_get_return_data_pointer_type sol_get_return_data_pointer = (sol_get_return_data_pointer_type) 1562527204;
return sol_get_return_data_pointer(arg1, arg2, arg3);
}