diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-09-02 16:46:41 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-09-02 16:46:41 +0000 |
commit | 1f213b642deb1d8e6139d2b7daac8f639c8717e7 (patch) | |
tree | 09c938120a9be6a97ec6c52b082316d7a3143db9 /src/libnsss/nsss_switch_op.c | |
parent | c9a58ceb7c07774944930105ace2f042be7b5f53 (diff) | |
download | nsss-1f213b642deb1d8e6139d2b7daac8f639c8717e7.tar.xz |
Pass errno as unsigned char
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libnsss/nsss_switch_op.c')
-rw-r--r-- | src/libnsss/nsss_switch_op.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnsss/nsss_switch_op.c b/src/libnsss/nsss_switch_op.c index 77c49ed..7e9c1b3 100644 --- a/src/libnsss/nsss_switch_op.c +++ b/src/libnsss/nsss_switch_op.c @@ -8,9 +8,9 @@ int nsss_switch_op (nsss_switch_t *a, char op, tain const *deadline, tain *stamp) { - char c ; + unsigned char c ; if (!ipc_timed_send(buffer_fd(&a->b), &op, 1, deadline, stamp)) return 0 ; - if (!buffer_timed_get(&a->b, &c, 1, deadline, stamp)) return 0 ; + if (!buffer_timed_get(&a->b, (char *)&c, 1, deadline, stamp)) return 0 ; if (c) return (errno = c, 0) ; return 1 ; } |