summaryrefslogtreecommitdiff
path: root/src/libstddjb/child_spawn2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/child_spawn2.c')
-rw-r--r--src/libstddjb/child_spawn2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstddjb/child_spawn2.c b/src/libstddjb/child_spawn2.c
index 03db0d5..d35b4a6 100644
--- a/src/libstddjb/child_spawn2.c
+++ b/src/libstddjb/child_spawn2.c
@@ -103,16 +103,16 @@ pid_t child_spawn2 (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 ;