Final fix for curl callback function signature - use proper void* types

This commit is contained in:
Laan Tungir 2025-08-15 09:14:53 -04:00
parent f50384962d
commit 6014a250dd
4 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
0.1.32
0.1.33

Binary file not shown.

View File

@ -249,7 +249,8 @@ typedef struct {
/**
* 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;
// Check if we need to expand the buffer

Binary file not shown.