aboutsummaryrefslogtreecommitdiff
path: root/contrib/csup
diff options
context:
space:
mode:
authorUlf Lilleengen <lulf@FreeBSD.org>2009-01-02 12:36:59 +0000
committerUlf Lilleengen <lulf@FreeBSD.org>2009-01-02 12:36:59 +0000
commit0da6b614afcb5dbdaebbdb1b70119896281039d4 (patch)
tree0c84c790da118b561c7f08e149445bef579d10cc /contrib/csup
parentd8c0b9ac9ffd9130f2f2ff07b3ac24c59bcc333e (diff)
Notes
Diffstat (limited to 'contrib/csup')
-rw-r--r--contrib/csup/rsyncfile.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/csup/rsyncfile.c b/contrib/csup/rsyncfile.c
index 30ccc30665f1..49741183df7d 100644
--- a/contrib/csup/rsyncfile.c
+++ b/contrib/csup/rsyncfile.c
@@ -34,10 +34,10 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
+#include <fcntl.h>
#include <unistd.h>
#include "misc.h"
-#include "fattr.h"
#include "rsyncfile.h"
#define MINBLOCKSIZE 1024
@@ -56,7 +56,6 @@ struct rsyncfile {
char *end;
size_t blocksize;
size_t fsize;
- struct fattr *fa;
int fd;
char *blockptr;
@@ -84,7 +83,6 @@ rsync_open(char *path, size_t blocksize, int rdonly)
return (NULL);
}
rf->fsize = st.st_size;
- rf->fa = fattr_fromstat(&st);
rf->fd = open(path, rdonly ? O_RDONLY : O_RDWR);
if (rf->fd < 0) {