]> Dogcows Code - chaz/tar/commitdiff
*** empty log message ***
authorFrançois Pinard <pinard@iro.umontreal.ca>
Wed, 16 Nov 1994 02:55:34 +0000 (02:55 +0000)
committerFrançois Pinard <pinard@iro.umontreal.ca>
Wed, 16 Nov 1994 02:55:34 +0000 (02:55 +0000)
src/rtapelib.c

index 887122b8df7be47b05acae62fbb31bd2afbfd794..c8a41b8b1eafb12c44421924c1c729e7dff1fffc 100644 (file)
 extern int errno;
 #endif
 
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#ifdef STDC_HEADERS
-#include <string.h>
-#include <stdlib.h>
-#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;
This page took 0.023229 seconds and 4 git commands to generate.