summaryrefslogtreecommitdiff
path: root/src/libstddjb/mininetstring_read.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-01-14 20:09:51 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-01-14 20:09:51 +0000
commitdb086527035619204569f79672b7a01fc26d8aa4 (patch)
treeea5a305a25d5fdb717b385e7beef075254d9ac6f /src/libstddjb/mininetstring_read.c
parent8849baf295715efd428e9243b67b2576a41f8fe4 (diff)
downloadskalibs-db086527035619204569f79672b7a01fc26d8aa4.tar.xz
Fix/clarify utilisations of 'char' (thanks Esben Haabendal)
Diffstat (limited to 'src/libstddjb/mininetstring_read.c')
-rw-r--r--src/libstddjb/mininetstring_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/mininetstring_read.c b/src/libstddjb/mininetstring_read.c
index 6a38523..f7c7a55 100644
--- a/src/libstddjb/mininetstring_read.c
+++ b/src/libstddjb/mininetstring_read.c
@@ -22,8 +22,8 @@ int mininetstring_read (int fd, stralloc *sa, uint32 *w)
}
if (*w & (1U << 31))
{
- char c ;
- switch (fd_read(fd, &c, 1))
+ unsigned char c ;
+ switch (fd_read(fd, (char *)&c, 1))
{
case -1 : return -1 ;
case 0 : return (errno = EPIPE, -1) ;