diff options
author | 2024-04-01 21:20:03 +0400 | |
---|---|---|
committer | 2024-05-08 17:56:03 +0100 | |
commit | d96581112c9694ea14771d83b0df107ac12bb20f (patch) | |
tree | ea74aa9733427d1de5970a17da178038610cdc9e /media-sound | |
parent | gnome-base/librsvg: Stabilize 2.57.3 sparc, #928777 (diff) | |
download | gentoo-d96581112c9694ea14771d83b0df107ac12bb20f.tar.gz gentoo-d96581112c9694ea14771d83b0df107ac12bb20f.tar.bz2 gentoo-d96581112c9694ea14771d83b0df107ac12bb20f.zip |
media-sound/mpfc: Fix incompatible-pointer-types
Closes: https://bugs.gentoo.org/921021
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/36045
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/mpfc/files/mpfc-1.3.8.1-c99-incompatible-pointers.patch | 49 | ||||
-rw-r--r-- | media-sound/mpfc/mpfc-1.3.8.1-r5.ebuild | 1 |
2 files changed, 50 insertions, 0 deletions
diff --git a/media-sound/mpfc/files/mpfc-1.3.8.1-c99-incompatible-pointers.patch b/media-sound/mpfc/files/mpfc-1.3.8.1-c99-incompatible-pointers.patch new file mode 100644 index 000000000000..2145184c2528 --- /dev/null +++ b/media-sound/mpfc/files/mpfc-1.3.8.1-c99-incompatible-pointers.patch @@ -0,0 +1,49 @@ +diff -ur mpfc-1.3.8.1.orig/src/player.c mpfc-1.3.8.1/src/player.c +--- a/src/player.c 2024-04-01 17:05:09.855312224 +0000 ++++ b/src/player.c 2024-04-01 17:08:54.586992161 +0000 +@@ -2673,14 +2673,14 @@ + { + player_pmng_view_t *v = &views[i]; + int index = v->m_list->m_cursor; +- plugin_t *p; ++ general_plugin_t *p; + + /* Get info */ + if (!v->m_list->m_list_size) + continue; +- p = (plugin_t *)v->m_list->m_list[index].m_data; +- char *author = plugin_get_author(p); +- char *desc = plugin_get_desc(p); ++ p = v->m_list->m_list[index].m_data; ++ char *author = plugin_get_author(&p->m_plugin); ++ char *desc = plugin_get_desc(&p->m_plugin); + + /* Set labels */ + editbox_set_text(v->m_author, author == NULL ? "" : author); +@@ -2688,7 +2688,7 @@ + + /* Synchronize effect checkbox */ + if (i == PLAYER_PMNG_EFFECT) +- v->m_enabled_cb->m_checked = pmng_is_effect_enabled(player_pmng, p); ++ v->m_enabled_cb->m_checked = pmng_is_effect_enabled(player_pmng, &p->m_plugin); + else if (i == PLAYER_PMNG_GENERAL) + { + bool_t started = genp_is_started(p); +@@ -3198,7 +3198,7 @@ + player_pmng_view_t *v = NULL; + player_pmng_view_t *views; + wnd_t *dlg; +- plugin_t *p; ++ general_plugin_t *p; + int index; + + /* Determine our view */ +@@ -3212,7 +3212,7 @@ + index = v->m_list->m_cursor; + if (!v->m_list->m_list_size) + return WND_MSG_RETCODE_OK; +- p = (plugin_t *)v->m_list->m_list[index].m_data; ++ p = v->m_list->m_list[index].m_data; + + /* Change state */ + if (!genp_is_started(p)) diff --git a/media-sound/mpfc/mpfc-1.3.8.1-r5.ebuild b/media-sound/mpfc/mpfc-1.3.8.1-r5.ebuild index 7c1422cff42e..b7120a8c0b73 100644 --- a/media-sound/mpfc/mpfc-1.3.8.1-r5.ebuild +++ b/media-sound/mpfc/mpfc-1.3.8.1-r5.ebuild @@ -26,6 +26,7 @@ DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}/${P}-fix-underlinking.patch" "${FILESDIR}/${P}-qa-implicit-declarations.patch" + "${FILESDIR}/${P}-c99-incompatible-pointers.patch" ) src_prepare() { |