diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-09-02 16:25:02 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-09-02 16:25:02 +0000 |
commit | 754da814c32de5fbbd8b065e9f106cbb7bfc8ae6 (patch) | |
tree | d94416601ba5bd57dfd532bbd99931b4e48edfa7 /src/libstddjb/child_spawn.c | |
parent | 686ca403f362ed0d92d94bec3f70984d5a012ca6 (diff) | |
download | skalibs-754da814c32de5fbbd8b065e9f106cbb7bfc8ae6.tar.gz skalibs-754da814c32de5fbbd8b065e9f106cbb7bfc8ae6.tar.xz skalibs-754da814c32de5fbbd8b065e9f106cbb7bfc8ae6.zip |
Don't forget child_spawn either
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libstddjb/child_spawn.c')
-rw-r--r-- | src/libstddjb/child_spawn.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstddjb/child_spawn.c b/src/libstddjb/child_spawn.c index 4ac1dde..5a157a8 100644 --- a/src/libstddjb/child_spawn.c +++ b/src/libstddjb/child_spawn.c @@ -136,16 +136,16 @@ pid_t child_spawn (char const *prog, char const *const *argv, char const *const syncdie: { - char c = errno ; - fd_write(syncpipe[1], &c, 1) ; + unsigned char c = errno ; + fd_write(syncpipe[1], (char *)&c, 1) ; } _exit(127) ; } fd_close(syncpipe[1]) ; { - char c ; - syncpipe[1] = fd_read(syncpipe[0], &c, 1) ; + unsigned char c ; + syncpipe[1] = fd_read(syncpipe[0], (char *)&c, 1) ; if (syncpipe[1]) { int e = c ; |