diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-03-28 13:18:14 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-04-05 02:39:09 +0200 |
commit | 2320b2144fcb1236c082278444e3c6df998e17ec (patch) | |
tree | 879bb402bca2d44eba5eb1571b2631c1830e6e72 /source3/modules/onefs_dir.c | |
parent | 6edd8e95f1ed0ac398c84e4050357097087ae15f (diff) | |
download | samba-2320b2144fcb1236c082278444e3c6df998e17ec.tar.gz samba-2320b2144fcb1236c082278444e3c6df998e17ec.tar.bz2 samba-2320b2144fcb1236c082278444e3c6df998e17ec.zip |
build: Remove SMB_STRUCT_DIRENT define
Diffstat (limited to 'source3/modules/onefs_dir.c')
-rw-r--r-- | source3/modules/onefs_dir.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/modules/onefs_dir.c b/source3/modules/onefs_dir.c index eb11b9725c..00ea145b2c 100644 --- a/source3/modules/onefs_dir.c +++ b/source3/modules/onefs_dir.c @@ -296,12 +296,12 @@ onefs_opendir(vfs_handle_struct *handle, const char *fname, const char *mask, * * @return dirent structure, NULL if at the end of the directory, NULL on error */ -SMB_STRUCT_DIRENT * +struct dirent * onefs_readdir(vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp, SMB_STRUCT_STAT *sbuf) { struct rdp_dir_state *dsp = NULL; - SMB_STRUCT_DIRENT *ret_direntp; + struct dirent *ret_direntp; bool same_as_last, filled_cache = false; int ret = -1; @@ -355,7 +355,7 @@ onefs_readdir(vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp, * our cursor, then return the next entry */ if (!filled_cache) { dsp->direntries_cursor += - ((SMB_STRUCT_DIRENT *)dsp->direntries_cursor)->d_reclen; + ((struct dirent *)dsp->direntries_cursor)->d_reclen; dsp->stat_cursor++; } @@ -366,7 +366,7 @@ onefs_readdir(vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp, dsp->resume_cookie = rdp_cookies[dsp->stat_cursor]; /* Return an entry from cache */ - ret_direntp = ((SMB_STRUCT_DIRENT *)dsp->direntries_cursor); + ret_direntp = ((struct dirent *)dsp->direntries_cursor); if (sbuf) { struct stat onefs_sbuf; |