summaryrefslogtreecommitdiff
path: root/iconv/iconv_prog.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconv/iconv_prog.c')
-rw-r--r--iconv/iconv_prog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iconv/iconv_prog.c b/iconv/iconv_prog.c
index 644b15b2e0..a6e4cd3c1f 100644
--- a/iconv/iconv_prog.c
+++ b/iconv/iconv_prog.c
@@ -462,7 +462,7 @@ process_fd (iconv_t cd, int fd, FILE *output)
while (actlen < maxlen)
{
- size_t n = read (fd, inptr, maxlen - actlen);
+ ssize_t n = read (fd, inptr, maxlen - actlen);
if (n == 0)
/* No more text to read. */
@@ -482,7 +482,7 @@ process_fd (iconv_t cd, int fd, FILE *output)
if (actlen == maxlen)
while (1)
{
- size_t n;
+ ssize_t n;
/* Increase the buffer. */
maxlen += 32768;