summaryrefslogtreecommitdiff
path: root/src/ipcpd/ipcp.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-04-02 08:19:55 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2018-04-05 10:32:00 +0200
commit458e610a988d6c0db332b607250e75a94f0b2c03 (patch)
tree375d2e3b0a92466cfc28228dba766e693bd0bf91 /src/ipcpd/ipcp.c
parent3b03c4b2bcbcf5a913a3127d2b45283540c505c3 (diff)
downloadouroboros-458e610a988d6c0db332b607250e75a94f0b2c03.tar.gz
ouroboros-458e610a988d6c0db332b607250e75a94f0b2c03.zip
ipcpd: Remove signal handler from ipcp.h
The signal handler is completely embedded in the source file. There was no more need to call it from elsewhere. Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/ipcpd/ipcp.c')
-rw-r--r--src/ipcpd/ipcp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c
index 2321e2a8..dfb88057 100644
--- a/src/ipcpd/ipcp.c
+++ b/src/ipcpd/ipcp.c
@@ -44,6 +44,7 @@
#include "ipcp.h"
+#include <signal.h>
#include <string.h>
#include <sys/socket.h>
#include <stdlib.h>
@@ -59,9 +60,9 @@ struct cmd {
int fd;
};
-void ipcp_sig_handler(int sig,
- siginfo_t * info,
- void * c)
+static void ipcp_sig_handler(int sig,
+ siginfo_t * info,
+ void * c)
{
(void) c;