diff options
Diffstat (limited to 'src/libstddjb/selfpipe_internal.c')
-rw-r--r-- | src/libstddjb/selfpipe_internal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/selfpipe_internal.c b/src/libstddjb/selfpipe_internal.c index e5d5d95..f65e07a 100644 --- a/src/libstddjb/selfpipe_internal.c +++ b/src/libstddjb/selfpipe_internal.c @@ -22,8 +22,8 @@ int selfpipe[2] = { -1, -1 } ; static void selfpipe_trigger (int s) { - char c = (char)s ; - fd_write(selfpipe[1], &c, 1) ; + unsigned char c = (unsigned char)s ; + fd_write(selfpipe[1], (char *)&c, 1) ; } struct skasigaction const selfpipe_ssa = { &selfpipe_trigger, SKASA_NOCLDSTOP | SKASA_MASKALL } ; |