summaryrefslogtreecommitdiff
path: root/contrib/cvs/diff/io.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2002-09-02 05:50:28 +0000
committerPeter Wemm <peter@FreeBSD.org>2002-09-02 05:50:28 +0000
commitb2b29aad0d0d63394479a7459a0f17936ce7c064 (patch)
tree8440832ece5130fad994f5f3489b01676ab1ca4a /contrib/cvs/diff/io.c
parent025111ae1321e9d30f5615b762a47fb354971ba1 (diff)
Notes
Diffstat (limited to 'contrib/cvs/diff/io.c')
-rw-r--r--contrib/cvs/diff/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/cvs/diff/io.c b/contrib/cvs/diff/io.c
index 730c09acd548..9eb2d5d4e976 100644
--- a/contrib/cvs/diff/io.c
+++ b/contrib/cvs/diff/io.c
@@ -101,7 +101,7 @@ sip (current, skip_test)
#if HAVE_SETMODE
int oldmode = setmode (current->desc, O_BINARY);
#endif
- size_t n = read (current->desc, current->buffer, current->bufsize);
+ ssize_t n = read (current->desc, current->buffer, current->bufsize);
if (n == -1)
pfatal_with_name (current->name);
current->buffered_chars = n;
@@ -128,7 +128,7 @@ void
slurp (current)
struct file_data *current;
{
- size_t cc;
+ ssize_t cc;
if (current->desc < 0)
/* The file is nonexistent. */