diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-13 10:31:14 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-13 10:31:14 +0000 |
commit | e450f6efc39e55e32264d2daded6c757af0f7527 (patch) | |
tree | 7f03bd312b8e589cc494ca9776dc81b815ef14cd /src/libstddjb/selfpipe_read.c | |
parent | 04905aaeffba2bc77866a4056dc3f2020a86bb26 (diff) | |
download | skalibs-e450f6efc39e55e32264d2daded6c757af0f7527.tar.xz |
Cleanups - mostly removing superfluous includes in headers
Diffstat (limited to 'src/libstddjb/selfpipe_read.c')
-rw-r--r-- | src/libstddjb/selfpipe_read.c | 4 |
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 |