build: Remove sys_seekdir wrapper
authorAndrew Bartlett <abartlet@samba.org>
Wed, 28 Mar 2012 02:04:03 +0000 (13:04 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 5 Apr 2012 00:39:09 +0000 (02:39 +0200)
source3/include/proto.h
source3/lib/system.c
source3/modules/onefs_dir.c
source3/modules/vfs_default.c

index 0033e643c197c6748e764038bcbfff8476e94877..c8db7bd02c92034be08378fdd32a1de2121cf4f6 100644 (file)
@@ -338,7 +338,6 @@ int sys_posix_fallocate(int fd, SMB_OFF_T offset, SMB_OFF_T len);
 int sys_fallocate(int fd, enum vfs_fallocate_mode mode, SMB_OFF_T offset, SMB_OFF_T len);
 void kernel_flock(int fd, uint32 share_mode, uint32 access_mask);
 SMB_STRUCT_DIR *sys_fdopendir(int fd);
-void sys_seekdir(SMB_STRUCT_DIR *dirp, long offset);
 long sys_telldir(SMB_STRUCT_DIR *dirp);
 void sys_rewinddir(SMB_STRUCT_DIR *dirp);
 int sys_closedir(SMB_STRUCT_DIR *dirp);
index 6b778c61c06f9df016aaa79ed74d3ebd537f5bee..7a2e1bc38ceb1da8ad762ecd083eda6cb5ca2f0a 100644 (file)
@@ -633,15 +633,6 @@ SMB_STRUCT_DIR *sys_fdopendir(int fd)
 #endif
 }
 
-/*******************************************************************
- A seekdir wrapper.
-********************************************************************/
-
-void sys_seekdir(SMB_STRUCT_DIR *dirp, long offset)
-{
-       seekdir(dirp, offset);
-}
-
 /*******************************************************************
  A telldir wrapper.
 ********************************************************************/
index 808f6fb04700c47e415ac2e8c6bba63dcd56c89e..da60ff388edf18e1245f23f8b717de0f99cd9c2a 100644 (file)
@@ -416,7 +416,7 @@ onefs_seekdir(vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp, long offset)
        if (!lp_parm_bool(SNUM(handle->conn), PARM_ONEFS_TYPE,
            PARM_USE_READDIRPLUS, PARM_USE_READDIRPLUS_DEFAULT))
        {
-               return sys_seekdir(dirp, offset);
+               return seekdir(dirp, offset);
        }
 
        /* Validate inputs */
index f64bbcb5266ef5372cc7d410b5b3e25be854df32..e9ff7cb8bc3bbc12ae43c96b5d74b3fde98a22b9 100644 (file)
@@ -386,7 +386,7 @@ static SMB_STRUCT_DIRENT *vfswrap_readdir(vfs_handle_struct *handle,
 static void vfswrap_seekdir(vfs_handle_struct *handle,  SMB_STRUCT_DIR *dirp, long offset)
 {
        START_PROFILE(syscall_seekdir);
-       sys_seekdir(dirp, offset);
+       seekdir(dirp, offset);
        END_PROFILE(syscall_seekdir);
 }