diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-05-24 21:22:51 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-05-24 21:22:51 +0200 |
commit | e5f567c7647acefa295850f5ab6ccf2c10329c44 (patch) | |
tree | 56747779db27822f750967fbc0dfaf0566b4f42d /src/tools/cbr/cbr_server.c | |
parent | d74d67a0e2d3de0ec208ed9b839815a70d84f727 (diff) | |
download | ouroboros-e5f567c7647acefa295850f5ab6ccf2c10329c44.tar.gz ouroboros-e5f567c7647acefa295850f5ab6ccf2c10329c44.zip |
tools: fixes comments on d74d67a
Diffstat (limited to 'src/tools/cbr/cbr_server.c')
-rw-r--r-- | src/tools/cbr/cbr_server.c | 9 |
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); |