diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-09-02 19:11:11 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-09-02 19:11:11 +0000 |
commit | d9488baa63351cafd237f5af15018ea5898ec0bc (patch) | |
tree | 9704741988528c28a8cb51c1e60fae56d712ab6d /src/libs6/s6_fdholder_store.c | |
parent | 208dc53700866d413efaf7374ebd9dbaeaee6551 (diff) | |
download | s6-d9488baa63351cafd237f5af15018ea5898ec0bc.tar.xz |
Pass errno as unsigned char
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libs6/s6_fdholder_store.c')
-rw-r--r-- | src/libs6/s6_fdholder_store.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6/s6_fdholder_store.c b/src/libs6/s6_fdholder_store.c index d765df4..40d660a 100644 --- a/src/libs6/s6_fdholder_store.c +++ b/src/libs6/s6_fdholder_store.c @@ -21,5 +21,5 @@ int s6_fdholder_store (s6_fdholder_t *a, int fd, char const *id, tain const *lim unixmessage_drop(&m) ; return (errno = EPROTO, 0) ; } - return m.s[0] ? (errno = m.s[0], 0) : 1 ; + return m.s[0] ? (errno = (unsigned char)m.s[0], 0) : 1 ; } |