Matej Cepl
585198d7c9
- Add pointer-types.patch to fix compilation error with GCC 14 (bsc#1221698). OBS-URL: https://build.opensuse.org/request/show/1160809 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libcddb?expand=0&rev=28
16 lines
600 B
Diff
16 lines
600 B
Diff
---
|
|
lib/cddb_net.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/lib/cddb_net.c
|
|
+++ b/lib/cddb_net.c
|
|
@@ -325,7 +325,7 @@ int timeout_connect(int sockfd, const st
|
|
default:
|
|
/* we got connected, check error condition */
|
|
l = sizeof(rv);
|
|
- getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &rv, &l);
|
|
+ getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &rv, (socklen_t * restrict)&l);
|
|
if (rv) {
|
|
/* something went wrong, simulate normal connect behaviour */
|
|
errno = rv;
|