Skip to content

Commit 7ebd758

Browse files
committed
tree-wide: voidify some socket calls
1 parent e2d0fa6 commit 7ebd758

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/activate/activate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ static int do_accept(const char* name, char **argv, char **envp, int fd) {
274274
if (fd_accepted < 0)
275275
return log_error_errno(errno, "Failed to accept connection on fd:%d: %m", fd);
276276

277-
getsockname_pretty(fd_accepted, &local);
278-
getpeername_pretty(fd_accepted, true, &peer);
277+
(void) getsockname_pretty(fd_accepted, &local);
278+
(void) getpeername_pretty(fd_accepted, true, &peer);
279279
log_info("Connection from %s to %s", strna(peer), strna(local));
280280

281281
return fork_and_exec_process(name, argv, envp, fd_accepted);

src/socket-proxy/socket-proxyd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ static int accept_cb(sd_event_source *s, int fd, uint32_t revents, void *userdat
470470
if (errno != -EAGAIN)
471471
log_warning_errno(errno, "Failed to accept() socket: %m");
472472
} else {
473-
getpeername_pretty(nfd, true, &peer);
473+
(void) getpeername_pretty(nfd, true, &peer);
474474
log_debug("New connection from %s", strna(peer));
475475

476476
r = add_connection_socket(context, nfd);

0 commit comments

Comments
 (0)