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
This commit is contained in:
Harald Welte 2023-01-04 15:28:32 +01:00
parent 45ff1d2e62
commit bd5ec5ff0f
1 changed files with 3 additions and 2 deletions

View File

@ -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 @@ const struct log_info rtpsource_log_info = {
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