1From 46b02f0655af0a9594e805f09a8ee99278f84777 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Tomi=20L=C3=A4hteenm=C3=A4ki?= <lihis@lihis.net>
3Date: Mon, 19 Feb 2024 09:06:20 +0200
4Subject: [PATCH] Fix incompatible pointer type in sip_basic.c
5
6Closes #248
7
8Upstream: https://github.com/freeswitch/sofia-sip/pull/249
9
10Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
11---
12 libsofia-sip-ua/sip/sip_basic.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/libsofia-sip-ua/sip/sip_basic.c b/libsofia-sip-ua/sip/sip_basic.c
16index 3444fb25..82e824e3 100644
17--- a/libsofia-sip-ua/sip/sip_basic.c
18+++ b/libsofia-sip-ua/sip/sip_basic.c
19@@ -2901,7 +2901,7 @@ issize_t sip_identity_d(su_home_t *home, sip_header_t *h, char *s, isize_t slen)
20       ext = strchr(ppt, ';');
21
22       if (ext) {
23-          msg_param_t *params = su_alloc(home, sizeof(msg_param_t));
24+          msg_param_t const *params = su_alloc(home, sizeof(msg_param_t));
25           if (msg_params_d(home, &ext, &params) >= 0) {
26               id->id_info_params = params;
27           }
28