summaryrefslogtreecommitdiffstats
path: root/0001-fix-incompatible-pointer-type.patch
blob: f10cbb231a8447d08c3093ed82b4786ce1d1bcda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From aa9b18e49f2c4e9033e6f32bc6af9cb11c44d332 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Thu, 23 Jan 2025 07:41:55 +0100
Subject: [PATCH] fix incompatible pointer type

---
 src/php_http_client_curl.h       | 2 +-
 src/php_http_client_curl_event.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/php_http_client_curl.h b/src/php_http_client_curl.h
index 61723b9..42feff7 100644
--- a/src/php_http_client_curl.h
+++ b/src/php_http_client_curl.h
@@ -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);
diff --git a/src/php_http_client_curl_event.c b/src/php_http_client_curl_event.c
index 2e663ed..b532e11 100644
--- a/src/php_http_client_curl_event.c
+++ b/src/php_http_client_curl_event.c
@@ -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;
-- 
2.48.1