sdk/bpf/c: fix sol_get_return_data signature (#26525)
This commit is contained in:
parent
a6c41367aa
commit
4163dc181e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue