Skip to content

Commit

Permalink
fix incompatible pointer type
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Jan 23, 2025
1 parent 99e4f24 commit aa9b18e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/php_http_client_curl.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ typedef struct php_http_client_curl_handle {
} php_http_client_curl_handle_t;

typedef struct php_http_client_curl_ops {
void *(*init)();
void *(*init)(php_http_client_t *client, void *user_data);
void (*dtor)(void **ctx_ptr);
ZEND_RESULT_CODE (*once)(void *ctx);
ZEND_RESULT_CODE (*wait)(void *ctx, struct timeval *custom_timeout);
Expand Down
2 changes: 1 addition & 1 deletion src/php_http_client_curl_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ static ZEND_RESULT_CODE php_http_client_curl_event_exec(void *context)
return SUCCESS;
}

static void *php_http_client_curl_event_init(php_http_client_t *client)
static void *php_http_client_curl_event_init(php_http_client_t *client, void *user_data)
{
php_http_client_curl_t *curl = client->ctx;
php_http_client_curl_event_context_t *ctx;
Expand Down

0 comments on commit aa9b18e

Please sign in to comment.