X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprocess.c;h=19c39801c3bbdbdbb3dd73e265349aa5f6181177;hb=c6b0e102ad7caabae6876849c97f8acaecf5bc1a;hp=3b147909b8067ddc5dd5e514b24e7cd93ffab43e;hpb=25b467638a23ad03524719329027225ae1da75bc;p=tinc diff --git a/src/process.c b/src/process.c index 3b147909..19c39801 100644 --- a/src/process.c +++ b/src/process.c @@ -40,11 +40,6 @@ extern char *identname; extern char **g_argv; extern bool use_logfile; -static void memory_full(int size) { - logger(LOG_ERR, "Memory exhausted (couldn't allocate %d bytes), exitting.", size); - exit(1); -} - /* Some functions the less gifted operating systems might lack... */ #ifdef HAVE_MINGW @@ -353,7 +348,7 @@ static struct { void setup_signals(void) { #ifndef HAVE_MINGW int i; - struct sigaction act = {NULL}; + struct sigaction act = {{NULL}}; sigemptyset(&act.sa_mask);