Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use floating point for printout of stats - this wrks on machines
[rsync/rsync.git]
/
util.c
diff --git
a/util.c
b/util.c
index
1a041a3
..
e39f3cc
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-32,7
+32,7
@@
int num_waiting(int fd)
}
}
-struct map_struct *map_file(int fd,
off_t
len)
+struct map_struct *map_file(int fd,
OFF_T
len)
{
struct map_struct *ret;
ret = (struct map_struct *)malloc(sizeof(*ret));
{
struct map_struct *ret;
ret = (struct map_struct *)malloc(sizeof(*ret));
@@
-54,7
+54,7
@@
struct map_struct *map_file(int fd,off_t len)
}
}
-char *map_ptr(struct map_struct *map,
off_t
offset,int len)
+char *map_ptr(struct map_struct *map,
OFF_T
offset,int len)
{
int nread = -2;
{
int nread = -2;
@@
-298,7
+298,7
@@
int create_directory_path(char *fname)
p = fname;
while ((p=strchr(p,'/'))) {
*p = 0;
p = fname;
while ((p=strchr(p,'/'))) {
*p = 0;
- mkdir(fname,0777 & ~orig_umask);
+
do_
mkdir(fname,0777 & ~orig_umask);
*p = '/';
p++;
}
*p = '/';
p++;
}