Fix pointer to integer conversion, invalid with clang 15
ok landry@ (maintainer)
This commit is contained in:
parent
7622e9920e
commit
48783dae6c
|
@ -4,7 +4,7 @@ VERSION= 11.8.17
|
||||||
DISTNAME= libmpd-${VERSION}
|
DISTNAME= libmpd-${VERSION}
|
||||||
SHARED_LIBS= mpd 3.2 #.3.0
|
SHARED_LIBS= mpd 3.2 #.3.0
|
||||||
CATEGORIES= audio
|
CATEGORIES= audio
|
||||||
REVISION = 6
|
REVISION = 7
|
||||||
|
|
||||||
MAINTAINER= Landry Breuil <landry@openbsd.org>
|
MAINTAINER= Landry Breuil <landry@openbsd.org>
|
||||||
|
|
||||||
|
|
14
audio/libmpd/patches/patch-src_libmpd-playlist_c
Normal file
14
audio/libmpd/patches/patch-src_libmpd-playlist_c
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
Fix return value, invalid pointer to integer conversion with clang 15.
|
||||||
|
|
||||||
|
Index: src/libmpd-playlist.c
|
||||||
|
--- src/libmpd-playlist.c.orig
|
||||||
|
+++ src/libmpd-playlist.c
|
||||||
|
@@ -780,7 +780,7 @@ int mpd_playlist_load(MpdObj *mi, const char *path)
|
||||||
|
if(mpd_lock_conn(mi))
|
||||||
|
{
|
||||||
|
debug_printf(DEBUG_ERROR,"lock failed\n");
|
||||||
|
- return NULL;
|
||||||
|
+ return MPD_LOCK_FAILED;
|
||||||
|
}
|
||||||
|
mpd_sendLoadCommand(mi->connection,path);
|
||||||
|
mpd_finishCommand(mi->connection);
|
Loading…
Reference in New Issue
Block a user