From c779a5ec7deecf91cb9aca298af90cbc2d9c04d7 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 23 Aug 2020 07:44:02 +0200 Subject: log: include 'fmt' in __VA_ARGS__ This ensures all calls have at least one __VA_ARGS__ argument, thus making them ISO C99 compliant. --- spawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spawn.c') diff --git a/spawn.c b/spawn.c index b268bfe5..cc4755f4 100644 --- a/spawn.c +++ b/spawn.c @@ -61,7 +61,7 @@ spawn(struct reaper *reaper, const char *cwd, char *const argv[], LOG_ERRNO("failed to read from pipe"); return false; } else { - LOG_ERRNO_P("%s: failed to spawn", _errno, argv[0]); + LOG_ERRNO_P(_errno, "%s: failed to spawn", argv[0]); errno = _errno; waitpid(pid, NULL, 0); return false; -- cgit v1.3