More checkpatch.pl happiness

This commit is contained in:
2017-06-21 11:52:34 +03:00
parent caa0e2b6a7
commit a0915fc803
3 changed files with 24 additions and 14 deletions

View File

@@ -73,7 +73,8 @@ static void *servlet(void *args) /* Serve the connection -- threadable */
/* TODO: Insert msg handler here */
continue;
}
if (SSL_get_shutdown(agent->ssl) == SSL_RECEIVED_SHUTDOWN)
if (SSL_get_shutdown(agent->ssl)
== SSL_RECEIVED_SHUTDOWN)
log(VERBOSE,
"SSL_RECEIVED_SHUTDOWN from agent [%s]",
agent->ip);
@@ -84,7 +85,8 @@ static void *servlet(void *args) /* Serve the connection -- threadable */
//log_ssl();
sprintf((char *)buf.chunk.data, "%s",
"Where's the data, m8?");
SSL_write(agent->ssl, &buf, sizeof(struct msg_t));
SSL_write(agent->ssl, &buf,
sizeof(struct msg_t));
}
log(INFO, "Agent [%s] disconnected.", agent->ip);
} while (bytes);
@@ -111,7 +113,7 @@ void *agent_pool(void *args)
pthread_t *agent_thread =
(pthread_t *)malloc(pool->size * sizeof(pthread_t));
struct agent_args *agent_struct =
(struct agent_args *)malloc(pool->size * sizeof(struct agent_args));
malloc(pool->size * sizeof(struct agent_args));
int i;
memset(agent_thread, 0, sizeof(pthread_t) * pool->size);