Fix invalid integer to pointer conversion, fatal with clang 15.

Already fixed upstream but the commit didn't make the 0.5.10 release.
This commit is contained in:
jca 2023-01-13 12:24:00 +00:00
parent 7bbe599ca2
commit 13164ef000
2 changed files with 16 additions and 1 deletions

View File

@ -5,7 +5,7 @@ COMMENT-ldap= LDAP module for c-icap
V= 0.5.10
REVISION-db= 0
REVISION-main= 0
REVISION-main= 1
REVISION-ldap= 1
DISTNAME= c_icap-$V
PKGNAME-main= c-icap-$V

View File

@ -0,0 +1,15 @@
Invalid integer/pointer conversion. Already fixed upstream:
https://github.com/c-icap/c-icap-server/commit/8ef8966237865ec699ab16d208ff56edaac4ff7b
Index: mpmt_server.c
--- mpmt_server.c.orig
+++ mpmt_server.c
@@ -75,7 +75,7 @@ typedef struct server_decl {
ci_thread_mutex_t threads_list_mtx;
server_decl_t **threads_list = NULL;
-ci_thread_t listener_thread_id = -1;
+ci_thread_t listener_thread_id;
int listener_running = 0;
ci_thread_cond_t free_server_cond;