From: Zbigniew Jędrzejewski-Szmek Date: Wed, 5 Dec 2018 16:53:50 +0000 (+0100) Subject: journald: remove unnecessary {} X-Git-Tag: v241~158^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc2762a309132a34db1797d8b5792d5747a94484;p=platform%2Fupstream%2Fsystemd.git journald: remove unnecessary {} --- diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index 434325c..f096725 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -1276,8 +1276,7 @@ int server_process_datagram(sd_event_source *es, int fd, uint32_t revents, void return log_error_errno(errno, "recvmsg() failed: %m"); } - CMSG_FOREACH(cmsg, &msghdr) { - + CMSG_FOREACH(cmsg, &msghdr) if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_CREDENTIALS && cmsg->cmsg_len == CMSG_LEN(sizeof(struct ucred))) @@ -1295,7 +1294,6 @@ int server_process_datagram(sd_event_source *es, int fd, uint32_t revents, void fds = (int*) CMSG_DATA(cmsg); n_fds = (cmsg->cmsg_len - CMSG_LEN(0)) / sizeof(int); } - } /* And a trailing NUL, just in case */ s->buffer[n] = 0;