diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2016-01-14 20:09:51 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2016-01-14 20:09:51 +0000 |
commit | db086527035619204569f79672b7a01fc26d8aa4 (patch) | |
tree | ea5a305a25d5fdb717b385e7beef075254d9ac6f /src/libstddjb/child_spawn.c | |
parent | 8849baf295715efd428e9243b67b2576a41f8fe4 (diff) | |
download | skalibs-db086527035619204569f79672b7a01fc26d8aa4.tar.xz |
Fix/clarify utilisations of 'char' (thanks Esben Haabendal)
Diffstat (limited to 'src/libstddjb/child_spawn.c')
-rw-r--r-- | src/libstddjb/child_spawn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/child_spawn.c b/src/libstddjb/child_spawn.c index 18cee96..addc7cd 100644 --- a/src/libstddjb/child_spawn.c +++ b/src/libstddjb/child_spawn.c @@ -138,8 +138,8 @@ 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 const *)&c, 1) ; } _exit(127) ; } |