wok-next view libmpd/stuff/patches/0001-fix-return-value.patch @ rev 21683
updated glances (1.5.1 -> 3.1.4.1)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jun 29 15:35:41 2020 +0100 (2020-06-29) |
parents | |
children |
line source
1 From 91001f43970e3faa0a97ccc3fced03b86be47d27 Mon Sep 17 00:00:00 2001
2 From: Christian Hesse <mail@eworm.de>
3 Date: Wed, 19 Jul 2017 14:22:48 +0200
4 Subject: [PATCH 1/3] fix return makes integer from pointer without a cast
5 ---
6 src/libmpd-playlist.c | 2 +-
7 1 file changed, 1 insertion(+), 1 deletion(-)
9 diff --git a/src/libmpd-playlist.c b/src/libmpd-playlist.c
10 index c3c30ec..64c64ea 100644
11 --- a/src/libmpd-playlist.c
12 +++ b/src/libmpd-playlist.c
13 @@ -780,7 +780,7 @@ int mpd_playlist_load(MpdObj *mi, const char *path)
14 if(mpd_lock_conn(mi))
15 {
16 debug_printf(DEBUG_ERROR,"lock failed\n");
17 - return NULL;
18 + return MPD_LOCK_FAILED;
19 }
20 mpd_sendLoadCommand(mi->connection,path);
21 mpd_finishCommand(mi->connection);