]> 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 36602df7588a49fa0dc92157bc95dd33c1dd9c00..2a40bc0dbb17b831aaa1d15376c1119af44910cb 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -17,6 +17,7 @@
 #include "log.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);
 }