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: I57d13faa8052b6f15890ce9c6c74efa927d2e2abmaster
parent
da8e9c9d6b
commit
ec0c3ce444
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue