Files
telephony/net/freeswitch/patches/063-libs-iksemel-fix-compilation-error-for-iks_stack_del.patch
Christian Marangi 5df34648c8 freeswitch: fix various compilation error
This restore correctly compilation of each freeswitch module.

We move the sphinxbase library to alpha5 version and we backport lots
patch that fix compilation error.

Only the sphinx related changes required some downstream modification to
use the new (actually old but still newer) version and align one
backport to only apply the relevant changes for the module.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-11-21 20:39:46 +01:00

35 lines
1.2 KiB
Diff

From 64a2ce52515821c27757e19a44a970ace3bf1c78 Mon Sep 17 00:00:00 2001
From: Christian Marangi <ansuelsmth@gmail.com>
Date: Fri, 21 Nov 2025 19:46:16 +0100
Subject: [PATCH] libs: iksemel: fix compilation error for iks_stack_delete
Fix compilation error
hash.c: In function 'hash_delete':
hash.c:141:28: error: passing argument 1 of 'iks_stack_delete' from incompatible pointer type [-Wincompatible-pointer-types]
141 | iks_stack_delete (h->s);
| ~^~~
| |
| ikstack * {aka struct ikstack_struct *}
In file included from hash.c:8:
../include/iksemel.h:27:34: note: expected 'ikstack **' {aka 'struct ikstack_struct **'} but argument is of type 'ikstack *' {aka 'struct ikstack_struct *'}
27 | void iks_stack_delete (ikstack **sp);
| ~~~~~~~~~~^~
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
libs/iksemel/tools/hash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/libs/iksemel/tools/hash.c
+++ b/libs/iksemel/tools/hash.c
@@ -138,7 +138,7 @@ hash_print (hash *h, char *title_fmt, ch
void
hash_delete (hash *h)
{
- iks_stack_delete (h->s);
+ iks_stack_delete (&h->s);
free (h->table);
free (h);
}