commit - ac9f55ba3248ea026ca146202c69c2aa4b3594ed
commit + 9a821f8c0f04bf9135bff60cc3ae3f4d109a02ee
blob - 8f73566147e59e748fe9a0214830c835db3d6098
blob + 936f80cafda9edac9433a65edc7ba5d1afce7855
--- gmid.c
+++ gmid.c
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));
}
}
}
}
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
/* 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);
}