[clang-tidy] remove pointless void arg

Found with modernize-redundant-void-arg

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-01-31 20:12:05 -08:00
parent bc6eca2115
commit 568deefd68
11 changed files with 18 additions and 18 deletions

View File

@@ -66,7 +66,7 @@ static bool had_group = false;
static int detach_fd = -1;
void
daemonize_kill(void)
daemonize_kill()
{
if (pidfile.IsNull())
throw std::runtime_error("no pid_file specified in the config file");
@@ -85,14 +85,14 @@ daemonize_kill(void)
}
void
daemonize_close_stdin(void)
daemonize_close_stdin()
{
close(STDIN_FILENO);
open("/dev/null", O_RDONLY);
}
void
daemonize_set_user(void)
daemonize_set_user()
{
if (user_name == nullptr)
return;
@@ -245,7 +245,7 @@ daemonize_init(const char *user, const char *group, AllocatedPath &&_pidfile)
}
void
daemonize_finish(void)
daemonize_finish()
{
if (!pidfile.IsNull()) {
unlink(pidfile.c_str());