summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorAndre Noll <maan@tuebingen.mpg.de>2024-10-23 18:45:30 +0200
committerAndre Noll <maan@tuebingen.mpg.de>2025-03-23 19:13:50 +0100
commit07b73ad8272084b706d18ee2286bf25711dbaabb (patch)
treec79ef9a311120433f4ebe72dbbaa492bab449c19 /exec.c
parent5770e00c6e59528762be20610af6d8bd24d6872f (diff)
Switch back to variadic log macros.HEADpumaster
This essentially reverts commit 66cdd5bc99a5 which aimed to make the dss log facility C89 conform. While this was a worthwhile goal in 2012, it has little value today, since in 2025 we can safely assume a C99 compliant compiler. The patch was created with git revert -Xours 66cdd5bc followed by manual tweaks to make it compile again.
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exec.c b/exec.c
index c538eab..3d3963f 100644
--- a/exec.c
+++ b/exec.c
@@ -17,7 +17,7 @@
void dss_exec(pid_t *pid, const char *file, char *const *const args)
{
if ((*pid = fork()) < 0) {
- DSS_EMERG_LOG(("fork error: %s\n", strerror(errno)));
+ DSS_EMERG_LOG("fork error: %s\n", strerror(errno));
exit(EXIT_FAILURE);
}
if (*pid) /* parent */
@@ -26,7 +26,7 @@ void dss_exec(pid_t *pid, const char *file, char *const *const args)
signal(SIGTERM, SIG_DFL);
signal(SIGCHLD, SIG_DFL);
execvp(file, args);
- DSS_EMERG_LOG(("execvp error: %s\n", strerror(errno)));
+ DSS_EMERG_LOG("execvp error: %s\n", strerror(errno));
_exit(EXIT_FAILURE);
}