Skip to content

Commit

Permalink
stats: no need for void cast of a void return value
Browse files Browse the repository at this point in the history
client_{reader,writer}_create() return void, therefore there is no return
value to discard.
  • Loading branch information
Josef 'Jeff' Sipek committed Mar 5, 2019
1 parent b5f6176 commit b5a9890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stats/main.c
Expand Up @@ -34,9 +34,9 @@ static bool client_is_writer(const char *path)
static void client_connected(struct master_service_connection *conn)
{
if (client_is_writer(conn->name))
(void)client_writer_create(conn->fd, metrics);
client_writer_create(conn->fd, metrics);
else
(void)client_reader_create(conn->fd, metrics);
client_reader_create(conn->fd, metrics);
master_service_client_connection_accept(conn);
}

Expand Down

0 comments on commit b5a9890

Please sign in to comment.