From 754da814c32de5fbbd8b065e9f106cbb7bfc8ae6 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 2 Sep 2021 16:25:02 +0000 Subject: Don't forget child_spawn either Signed-off-by: Laurent Bercot --- src/libstddjb/child_spawn1_internal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libstddjb/child_spawn1_internal.c') diff --git a/src/libstddjb/child_spawn1_internal.c b/src/libstddjb/child_spawn1_internal.c index 6b3dc91..436d19e 100644 --- a/src/libstddjb/child_spawn1_internal.c +++ b/src/libstddjb/child_spawn1_internal.c @@ -99,8 +99,8 @@ pid_t child_spawn1_internal (char const *prog, char const *const *argv, char con syncdie: { - char c = errno ; - fd_write(syncpipe[1], &c, 1) ; + unsigned char c = errno ; + fd_write(syncpipe[1], (char *)&c, 1) ; } _exit(127) ; } @@ -108,8 +108,8 @@ pid_t child_spawn1_internal (char const *prog, char const *const *argv, char con 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 ; -- cgit v1.2.3