Files
gentoo/dev-libs/openct/files/openct-0.6.20-incompatible-pointers.patch
NHOrus 366d622220 dev-libs/openct: update EAPI 7 -> 8, fix incompatible pointers
Fixes QA warning about lack of udev rules reload after install,
fixes build on modern compilers

Bug: https://bugs.gentoo.org/843071
Closes: https://bugs.gentoo.org/920193
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40227
Signed-off-by: Sam James <sam@gentoo.org>
2025-02-10 09:01:02 +00:00

27 lines
958 B
Diff

Correct types so all pointer types are compatibile.
https://bugs.gentoo.org/920193
diff '--color=auto' -ru openct-0.6.20.old/src/ifd/process.c openct-0.6.20/src/ifd/process.c
--- openct-0.6.20.old/src/ifd/process.c 2025-01-20 19:26:08.226266610 +0400
+++ openct-0.6.20/src/ifd/process.c 2025-01-20 19:28:06.168582649 +0400
@@ -450,7 +450,7 @@
ct_tlv_parser_t * args, ct_tlv_builder_t * resp)
{
unsigned char *data;
- unsigned int data_len;
+ size_t data_len;
unsigned int address;
int rc;
diff '--color=auto' -ru openct-0.6.20.old/src/include/openct/socket.h openct-0.6.20/src/include/openct/socket.h
--- openct-0.6.20.old/src/include/openct/socket.h 2025-01-20 19:34:34.479330790 +0400
+++ openct-0.6.20/src/include/openct/socket.h 2025-01-20 19:36:19.708720553 +0400
@@ -37,7 +37,7 @@
listener : 1;
/* events to poll for */
- int events;
+ short events;
void * user_data;
int (*poll)(struct ct_socket *, struct pollfd *);