svn commit: r186698 - projects/csup_cvsmode/contrib/csup
Ulf Lilleengen
lulf at FreeBSD.org
Fri Jan 2 12:36:59 UTC 2009
Author: lulf
Date: Fri Jan 2 12:36:59 2009
New Revision: 186698
URL: http://svn.freebsd.org/changeset/base/186698
Log:
- Fattrs are not used for rsync, so remove unused code.
Modified:
projects/csup_cvsmode/contrib/csup/rsyncfile.c
Modified: projects/csup_cvsmode/contrib/csup/rsyncfile.c
==============================================================================
--- projects/csup_cvsmode/contrib/csup/rsyncfile.c Fri Jan 2 12:35:01 2009 (r186697)
+++ projects/csup_cvsmode/contrib/csup/rsyncfile.c Fri Jan 2 12:36:59 2009 (r186698)
@@ -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,
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) {
More information about the svn-src-projects
mailing list