mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
log: include 'fmt' in __VA_ARGS__
This ensures all calls have at least one __VA_ARGS__ argument, thus making them ISO C99 compliant.
This commit is contained in:
parent
dabdffafa5
commit
c779a5ec7d
4 changed files with 27 additions and 26 deletions
2
spawn.c
2
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue