diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-08-23 05:44:02 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-08-23 08:07:08 +0000 |
| commit | c779a5ec7deecf91cb9aca298af90cbc2d9c04d7 (patch) | |
| tree | 0894ee40fb2f5db9013b8172e4b4ed4312a4edcc /spawn.c | |
| parent | don'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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
