don't need PIPE_BUF any more
authorAndrew Tridgell <tridge@samba.org>
Sat, 29 Jan 2000 02:56:36 +0000 (02:56 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 29 Jan 2000 02:56:36 +0000 (02:56 +0000)
io.c
rsync.h

diff --git a/io.c b/io.c
index c01296da6f8aa998c4a7f39256ce81a59b93687a..f948147ebf45ccfde313109d558b9afd382126fa 100644 (file)
--- a/io.c
+++ b/io.c
@@ -364,8 +364,6 @@ static void writefd_unbuffered(int fd,char *buf,int len)
                if (FD_ISSET(fd, &w_fds)) {
                        int ret, n = len-total;
                        
-                       if (n > PIPE_BUF) n = PIPE_BUF;
-
                        ret = write(fd,buf+total,n?n:1);
 
                        if (ret == -1 && errno == EINTR) {
diff --git a/rsync.h b/rsync.h
index 2673c79f955b5bfba6f079a7c38fde820d95ae81..471449e043e89a8a5d1e4ce70e067d677e386923 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -283,10 +283,6 @@ enum logcode {FNONE=0, FERROR=1, FINFO=2, FLOG=3};
 #define MAXPATHLEN 1024
 #endif
 
-#ifndef PIPE_BUF
-#define PIPE_BUF 512
-#endif
-
 #ifndef INADDR_NONE
 #define INADDR_NONE 0xffffffff
 #endif