File: alsa-fix-signature-of-snd_pcm_info_free.patch

package info (click to toggle)
libsdl2 2.32.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 72,072 kB
  • sloc: ansic: 310,417; objc: 10,850; cpp: 9,959; xml: 6,904; sh: 5,730; perl: 3,277; python: 1,643; makefile: 1,022; asm: 661; javascript: 286
file content (22 lines) | stat: -rw-r--r-- 1,045 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Ozkan Sezer <sezeroz@gmail.com>
Date: Tue, 2 Sep 2025 17:02:28 +0300
Subject: alsa: fix signature of snd_pcm_info_free

Reference issue: https://github.com/libsdl-org/SDL/issues/13845.
---
 src/audio/alsa/SDL_alsa_audio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/audio/alsa/SDL_alsa_audio.c b/src/audio/alsa/SDL_alsa_audio.c
index 8f3a49c..7af7114 100644
--- a/src/audio/alsa/SDL_alsa_audio.c
+++ b/src/audio/alsa/SDL_alsa_audio.c
@@ -88,7 +88,7 @@ static const char *(*ALSA_snd_pcm_info_get_name)(const snd_pcm_info_t *);
 static int (*ALSA_snd_pcm_info_get_card)(const snd_pcm_info_t *);
 static int (*ALSA_snd_card_get_name)(int, char **);
 static int (*ALSA_snd_pcm_info_malloc)(snd_pcm_info_t **);
-static int (*ALSA_snd_pcm_info_free)(snd_pcm_info_t *);
+static void (*ALSA_snd_pcm_info_free)(snd_pcm_info_t *);
 #ifdef SND_CHMAP_API_VERSION
 static snd_pcm_chmap_t *(*ALSA_snd_pcm_get_chmap)(snd_pcm_t *);
 static int (*ALSA_snd_pcm_chmap_print)(const snd_pcm_chmap_t *map, size_t maxlen, char *buf);