summaryrefslogtreecommitdiff
path: root/src/tools/cbr/cbr_server.c
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-12-10 14:24:58 +0100
committerSander Vrijders <[email protected]>2016-12-10 14:24:58 +0100
commited6ac5db8474edabe83f0cdcbe7f258f0859ea41 (patch)
treef19864ccc41cece2bdc191e49735e9f3dc1bdd72 /src/tools/cbr/cbr_server.c
parent7c2191370c1c4b891df4d1016baeb220ce1d8dca (diff)
parent7a8f55bdb4498c927b6f192b83868138b32cce72 (diff)
downloadouroboros-ed6ac5db8474edabe83f0cdcbe7f258f0859ea41.tar.gz
ouroboros-ed6ac5db8474edabe83f0cdcbe7f258f0859ea41.zip
Merged in dstaesse/ouroboros/be-cbr (pull request #322)
tools: Shut down cbr gracefully
Diffstat (limited to 'src/tools/cbr/cbr_server.c')
-rw-r--r--src/tools/cbr/cbr_server.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/cbr/cbr_server.c b/src/tools/cbr/cbr_server.c
index d4826e03..104c5e9e 100644
--- a/src/tools/cbr/cbr_server.c
+++ b/src/tools/cbr/cbr_server.c
@@ -46,7 +46,7 @@ int fds_index = 0;
pthread_mutex_t fds_lock;
pthread_cond_t fds_signal;
-void shutdown_server(int signo, siginfo_t * info, void * c)
+static void shutdown_server(int signo, siginfo_t * info, void * c)
{
(void) info;
(void) c;
@@ -61,7 +61,7 @@ void shutdown_server(int signo, siginfo_t * info, void * c)
}
}
-void handle_flow(int fd)
+static void handle_flow(int fd)
{
int count = 0;
char buf[BUF_SIZE];
@@ -125,7 +125,7 @@ void handle_flow(int fd)
flow_dealloc(fd);
}
-void * worker(void * o)
+static void * worker(void * o)
{
int cli_fd;
@@ -153,7 +153,7 @@ void * worker(void * o)
return 0;
}
-void * listener(void * o)
+static void * listener(void * o)
{
int client_fd = 0;
int response = 0;