Final fix for curl callback function signature - use proper void* types
This commit is contained in:
parent
f50384962d
commit
6014a250dd
BIN
libnostr_core.a
BIN
libnostr_core.a
Binary file not shown.
|
@ -249,7 +249,8 @@ typedef struct {
|
||||||
/**
|
/**
|
||||||
* Callback function for curl to write HTTP response data
|
* Callback function for curl to write HTTP response data
|
||||||
*/
|
*/
|
||||||
static size_t nip05_write_callback(char* contents, size_t size, size_t nmemb, nip05_http_response_t* response) {
|
static size_t nip05_write_callback(void* contents, size_t size, size_t nmemb, void* userp) {
|
||||||
|
nip05_http_response_t* response = (nip05_http_response_t*)userp;
|
||||||
size_t total_size = size * nmemb;
|
size_t total_size = size * nmemb;
|
||||||
|
|
||||||
// Check if we need to expand the buffer
|
// Check if we need to expand the buffer
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue