summaryrefslogtreecommitdiff
path: root/src/libstddjb/selfpipe_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/selfpipe_read.c')
-rw-r--r--src/libstddjb/selfpipe_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/selfpipe_read.c b/src/libstddjb/selfpipe_read.c
index b31c6bd..92adf02 100644
--- a/src/libstddjb/selfpipe_read.c
+++ b/src/libstddjb/selfpipe_read.c
@@ -16,7 +16,7 @@ int selfpipe_read (void)
{
struct signalfd_siginfo buf ;
ssize_t r = sanitize_read(fd_read(selfpipe_fd, (char *)&buf, sizeof(struct signalfd_siginfo))) ;
- return (r <= 0) ? r : (int)buf.ssi_signo ;
+ return (r <= 0) ? r : buf.ssi_signo ;
}
#else
@@ -25,7 +25,7 @@ int selfpipe_read (void)
{
char c ;
ssize_t r = sanitize_read((fd_read(selfpipe_fd, &c, 1))) ;
- return (r <= 0) ? r : (int)c ;
+ return (r <= 0) ? r : c ;
}
#endif