Add clang-tidy target and fix problems
This commit is contained in:
parent
fca35ade9e
commit
f97b149376
25 changed files with 199 additions and 115 deletions
src/helpers
|
@ -27,7 +27,7 @@ helper_connect_tcp_server(char* host, uint16_t port)
|
|||
//res got filled out by getaddrinfo() for us
|
||||
s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); //creating Socket
|
||||
|
||||
if ((status = connect(s, res->ai_addr, res->ai_addrlen)) != 0) {
|
||||
if (connect(s, res->ai_addr, res->ai_addrlen) != 0) {
|
||||
LOGGER_ERR("connect() failed\n");
|
||||
freeaddrinfo(res);
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue