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
a large change to make rsync much more memory efficient. This is done
[rsync/rsync.git]
/
util.c
diff --git
a/util.c
b/util.c
index
d04a217
..
2a47945
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-164,21
+164,10
@@
void out_of_memory(char *str)
}
}
-#ifndef HAVE_STRDUP
- char *strdup(char *s)
-{
- int l = strlen(s) + 1;
- char *ret = (char *)malloc(l);
- if (ret)
- strcpy(ret,s);
- return ret;
-}
-#endif
-
int set_modtime(char *fname,time_t modtime)
{
int set_modtime(char *fname,time_t modtime)
{
-#ifdef HAVE_UTIM
E_H
+#ifdef HAVE_UTIM
BUF
struct utimbuf tbuf;
tbuf.actime = time(NULL);
tbuf.modtime = modtime;
struct utimbuf tbuf;
tbuf.actime = time(NULL);
tbuf.modtime = modtime;