summaryrefslogtreecommitdiff
path: root/src/tools/cbr/cbr_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/cbr/cbr_server.c')
-rw-r--r--src/tools/cbr/cbr_server.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tools/cbr/cbr_server.c b/src/tools/cbr/cbr_server.c
index 14791bd4..553f954d 100644
--- a/src/tools/cbr/cbr_server.c
+++ b/src/tools/cbr/cbr_server.c
@@ -116,12 +116,15 @@ int server_main()
{
int server_fd = 0;
int client_fd = 0;
- char * dif = DIF_NAME;
+
+ char * dif = DIF_NAME;
char * client_name = NULL;
- int i = 0;
+
+ int i = 0;
+
pthread_t * threads = malloc(sizeof(*threads) * 10);
if (threads == NULL)
- exit(1);
+ EXIT_FAILURE;
printf("Server started, interval is %ld s, timeout is %ld s.\n",
server_settings.interval, server_settings.timeout);