aboutsummaryrefslogtreecommitdiff
path: root/spawn.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-23 05:44:02 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-23 08:07:08 +0000
commitc779a5ec7deecf91cb9aca298af90cbc2d9c04d7 (patch)
tree0894ee40fb2f5db9013b8172e4b4ed4312a4edcc /spawn.c
parentdon't use empty struct initializers (diff)
log: include 'fmt' in __VA_ARGS__
This ensures all calls have at least one __VA_ARGS__ argument, thus making them ISO C99 compliant.
Diffstat (limited to 'spawn.c')
-rw-r--r--spawn.c2
1 files changed, 1 insertions, 1 deletions
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;