git.samba.org
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Changed d_name() to be a static inline function.
[rsync.git]
/
ifuncs.h
diff --git
a/ifuncs.h
b/ifuncs.h
index 68130890c5fb804ab832833efdb888b052886729..e032c67f77d93e0681f58bada6aec2ee32a9546a 100644
(file)
--- a/
ifuncs.h
+++ b/
ifuncs.h
@@
-57,6
+57,16
@@
from_wire_mode(int mode)
return mode;
}
+static inline char *
+d_name(struct dirent *di)
+{
+#ifdef HAVE_BROKEN_READDIR
+ return (di->d_name - 2);
+#else
+ return di->d_name;
+#endif
+}
+
static inline int
isDigit(const char *ptr)
{