Skip to content

Commit

Permalink
build: Remove sys_seekdir wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
abartlet committed Apr 5, 2012
1 parent afdb780 commit 900473a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
1 change: 0 additions & 1 deletion source3/include/proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 0 additions & 9 deletions source3/lib/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
********************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion source3/modules/onefs_dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion source3/modules/vfs_default.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 900473a

Please sign in to comment.