[BACK]Return to copy.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rsync

Diff for /src/usr.bin/rsync/copy.c between version 1.2.2.1 and 1.3

version 1.2.2.1, 2021/11/10 09:00:59 version 1.3, 2021/11/28 19:28:42
Line 15 
Line 15 
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
   
 #include <sys/param.h>  /* MAXBSIZE */  #include <sys/types.h>
   
 #include <err.h>  #include <err.h>
 #include <fcntl.h>  #include <fcntl.h>
Line 23 
Line 23 
   
 #include "extern.h"  #include "extern.h"
   
   #define _MAXBSIZE (64 * 1024)
   
 /*  /*
  * Return true if all bytes in buffer are zero.   * Return true if all bytes in buffer are zero.
  * A buffer of zero lenght is also considered a zero buffer.   * A buffer of zero lenght is also considered a zero buffer.
Line 42 
Line 44 
 static int  static int
 copy_internal(int fromfd, int tofd)  copy_internal(int fromfd, int tofd)
 {  {
         char buf[MAXBSIZE];          char buf[_MAXBSIZE];
         ssize_t r, w;          ssize_t r, w;
   
         while ((r = read(fromfd, buf, sizeof(buf))) > 0) {          while ((r = read(fromfd, buf, sizeof(buf))) > 0) {

Legend:
Removed from v.1.2.2.1  
changed lines
  Added in v.1.3