about summary refs log tree commit diff
path: root/src/libnsss/nsss_switch_op.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnsss/nsss_switch_op.c')
-rw-r--r--src/libnsss/nsss_switch_op.c4
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 ;
 }