More checkpatch.pl happiness
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user