seq: fix discards const from pointer target

Since glibc-2.43:

For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr,
strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers
into their input arrays now have definitions as macros that return a
pointer to a const-qualified type when the input argument is a pointer
to a const-qualified type.

https://lists.gnu.org/archive/html/info-gnu/2026-01/msg00005.html

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
This commit is contained in:
Rudi Heitbaum 2026-02-20 11:31:51 +00:00
parent a7ef4c9ea4
commit 757f3a86c9

View file

@ -424,8 +424,8 @@ int snd_seq_sync_output_queue(snd_seq_t *seq)
*/ */
int snd_seq_parse_address(snd_seq_t *seq, snd_seq_addr_t *addr, const char *arg) int snd_seq_parse_address(snd_seq_t *seq, snd_seq_addr_t *addr, const char *arg)
{ {
char *p, *buf; char *buf;
const char *s; const char *p, *s;
char c; char c;
long client, port = 0; long client, port = 0;
int len; int len;