From c7f6bea3f8ef9509efca68f6ebbfc2fd71ff9758 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 30 Dec 2015 16:17:12 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/daemon.c b/src/daemon.c index decd23e..830beca 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -287,7 +287,7 @@ run_job_or_hook(struct job *job, const char *hook) argv = new; memmove(argv + 2, argv, ((size_t)(job->argc) + 1) * sizeof(*argv)); argv[0] = getenv("SAT_HOOK_PATH"); - argv[1] = strstr(hook, hook); /* strstr: just to remove a warning */ + argv[1] = (strstr)(hook, hook); /* strstr: just to remove a warning */ } switch ((pid = fork())) { -- cgit v1.2.3-70-g09d2