]> git.tuebingen.mpg.de Git - dss.git/blobdiff - exec.c
Silence clang warnings.
[dss.git] / exec.c
diff --git a/exec.c b/exec.c
index adfd24d42ac724593707376ce8b3dc9d585d08e5..2a40bc0dbb17b831aaa1d15376c1119af44910cb 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -15,8 +15,9 @@
 
 #include "gcc-compat.h"
 #include "log.h"
-#include "error.h"
-#include "string.h"
+#include "err.h"
+#include "str.h"
+#include "exec.h"
 
 /**
  * Spawn a new process using execvp().
@@ -32,7 +33,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 */
@@ -41,7 +42,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);
 }