From: François Pinard Date: Wed, 16 Nov 1994 02:55:34 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=8885b60c27b1dcabd1009f684ac2af04473e6d7f;p=chaz%2Ftar *** empty log message *** --- diff --git a/src/rtapelib.c b/src/rtapelib.c index 887122b..c8a41b8 100644 --- a/src/rtapelib.c +++ b/src/rtapelib.c @@ -52,14 +52,6 @@ extern int errno; #endif -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef STDC_HEADERS -#include -#include -#endif - /* Maximum size of a fully qualified host name. */ #define MAXHOSTLEN 257 @@ -449,7 +441,7 @@ __rmt_read (fildes, buf, nbyte) for (i = 0; i < rc; i += nbyte, buf += nbyte) { - nbyte = read (READ (fildes), buf, rc - i); + nbyte = read (READ (fildes), buf, rc); if (nbyte <= 0) { _rmt_shutdown (fildes); @@ -513,7 +505,6 @@ __rmt_lseek (fildes, offset, whence) Return the results of the ioctl, or -1 on error. */ #ifdef MTIOCTOP -int __rmt_ioctl (fildes, op, arg) int fildes, op; char *arg;