commit 9a821f8c0f04bf9135bff60cc3ae3f4d109a02ee from: Omar Polo date: Mon Jun 05 15:07:24 2023 UTC fold long lines commit - ac9f55ba3248ea026ca146202c69c2aa4b3594ed commit + 9a821f8c0f04bf9135bff60cc3ae3f4d109a02ee blob - 8f73566147e59e748fe9a0214830c835db3d6098 blob + 936f80cafda9edac9433a65edc7ba5d1afce7855 --- gmid.c +++ gmid.c @@ -68,9 +68,10 @@ load_vhosts(void) TAILQ_FOREACH(l, &h->locations, locations) { if (*l->dir == '\0') continue; - if ((l->dirfd = open(l->dir, O_RDONLY | O_DIRECTORY)) == -1) - fatal("open %s for domain %s: %s", l->dir, h->domain, - strerror(errno)); + l->dirfd = open(l->dir, O_RDONLY | O_DIRECTORY); + if (l->dirfd == -1) + fatal("open %s for domain %s: %s", l->dir, + h->domain, strerror(errno)); } } } @@ -304,7 +305,8 @@ drop_priv(void) } if (getuid() == 0) - log_warn(NULL, "not a good idea to run a network daemon as root"); + log_warn(NULL, + "not a good idea to run a network daemon as root"); } static void @@ -493,7 +495,8 @@ main(int argc, char **argv) /* close the servers */ for (i = 0; i < conf.prefork; ++i) { - imsg_compose(&servibuf[i], IMSG_QUIT, 0, 0, -1, NULL, 0); + imsg_compose(&servibuf[i], IMSG_QUIT, 0, 0, -1, + NULL, 0); imsg_flush(&servibuf[i]); close(servibuf[i].fd); }