X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=inline;f=src%2Frtapelib.c;h=c8a41b8b1eafb12c44421924c1c729e7dff1fffc;hb=8885b60c27b1dcabd1009f684ac2af04473e6d7f;hp=887122b8df7be47b05acae62fbb31bd2afbfd794;hpb=83fe6258793e027ff3b8ecd699536809c379a67c;p=chaz%2Ftar 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;