Skip to content

Commit

Permalink
Merge pull request #126 from cgzones/semicolon
Browse files Browse the repository at this point in the history
Drop repeated semicolons
  • Loading branch information
ssahani authored Oct 21, 2024
2 parents d7232f8 + afbc843 commit 593c84a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/netlog/netlog-dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ int dtls_connect(DTLSManager *m, SocketAddress *address) {

fd = socket(AF_INET, SOCK_DGRAM, 0);
if (fd < 0)
return log_error_errno(errno, "DTLS: Failed to allocate socket: %m");;
return log_error_errno(errno, "DTLS: Failed to allocate socket: %m");

r = sockaddr_pretty(&address->sockaddr.sa, salen, true, true, &pretty);
if (r < 0)
return r;

r = connect(fd, &address->sockaddr.sa, salen);
if (r < 0 && errno != EINPROGRESS)
return log_error_errno(errno, "DTLS: Failed to connect to remote server='%s': %m", pretty);;
return log_error_errno(errno, "DTLS: Failed to connect to remote server='%s': %m", pretty);

log_debug("DTLS: Connected to remote server: '%s'", pretty);

Expand Down Expand Up @@ -185,7 +185,7 @@ void dtls_disconnect(DTLSManager *m) {
}

m->fd = safe_close(m->fd);
m->connected = false;;
m->connected = false;
}

void dtls_manager_free(DTLSManager *m) {
Expand Down
2 changes: 1 addition & 1 deletion src/netlog/netlog-network.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ int manager_open_network_socket(Manager *m) {
return -EPROTONOSUPPORT;
}
if (m->socket < 0)
return log_error_errno(errno, "Failed to create socket: %m");;
return log_error_errno(errno, "Failed to create socket: %m");

log_debug("Successfully created socket with fd='%d'", m->socket);

Expand Down
6 changes: 3 additions & 3 deletions src/netlog/netlog-tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,15 @@ int tls_connect(TLSManager *m, SocketAddress *address) {

fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (fd < 0)
return log_error_errno(errno, "TLS: Failed to allocate socket: %m");;
return log_error_errno(errno, "TLS: Failed to allocate socket: %m");

r = sockaddr_pretty(&address->sockaddr.sa, salen, true, true, &pretty);
if (r < 0)
return r;

r = connect(fd, &address->sockaddr.sa, salen);
if (r < 0 && errno != EINPROGRESS)
return log_error_errno(errno, "TLS: Failed to connect to remote server='%s': %m", pretty);;
return log_error_errno(errno, "TLS: Failed to connect to remote server='%s': %m", pretty);

log_debug("TLS: Connected to remote server: '%s'", pretty);

Expand Down Expand Up @@ -286,7 +286,7 @@ void tls_disconnect(TLSManager *m) {
}

m->fd = safe_close(m->fd);
m->connected = false;;
m->connected = false;
}

void tls_manager_free(TLSManager *m) {
Expand Down

0 comments on commit 593c84a

Please sign in to comment.