Changed d_name() to be a static inline function.
authorWayne Davison <wayned@samba.org>
Fri, 21 Mar 2008 14:26:25 +0000 (07:26 -0700)
committerWayne Davison <wayned@samba.org>
Fri, 21 Mar 2008 14:26:25 +0000 (07:26 -0700)
ifuncs.h
syscall.c

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)
 {
index d4ff3f91963fd1c96376b27cb2ea47969225c7fc..f1b73ea00f66f9dc2f10032c350b2515cb29567e 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -282,12 +282,3 @@ OFF_T do_lseek(int fd, OFF_T offset, int whence)
        return lseek(fd, offset, whence);
 #endif
 }
-
-char *d_name(struct dirent *di)
-{
-#ifdef HAVE_BROKEN_READDIR
-       return (di->d_name - 2);
-#else
-       return di->d_name;
-#endif
-}