laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/mncc-python/+/30858 )
Change subject: rtpsourcec: Fix compilation on Debian 11 / gcc-10.2.1 ......................................................................
rtpsourcec: Fix compilation on Debian 11 / gcc-10.2.1
rtpsource.c: In function ‘signal_handler’: rtpsource.c:209:3: error: called object ‘signal’ is not a function or function pointer 209 | signal(SIGABRT, SIG_DFL); | ^~~~~~ rtpsource.c:198:32: note: declared here 198 | static void signal_handler(int signal) | ~~~~^~~~~~
Change-Id: I57d13faa8052b6f15890ce9c6c74efa927d2e2ab --- M rtpsource/rtpsource.c 1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/mncc-python refs/changes/58/30858/1
diff --git a/rtpsource/rtpsource.c b/rtpsource/rtpsource.c index d966a4f..fb108bf 100644 --- a/rtpsource/rtpsource.c +++ b/rtpsource/rtpsource.c @@ -35,6 +35,7 @@ #include <unistd.h> #include <errno.h> #include <getopt.h> +#include <signal.h> #include <sys/signal.h>
#include <osmocom/core/linuxlist.h> @@ -194,9 +195,9 @@ struct rtpsource_state *g_rss; static void *g_tall_ctx;
-static void signal_handler(int signal) +static void signal_handler(int signum) { - switch (signal) { + switch (signum) { case SIGABRT: /* in case of abort, we want to obtain a talloc report and * then run default SIGABRT handler, who will generate coredump