summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_shadow_copy.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-28 13:18:14 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-04-05 02:39:09 +0200
commit2320b2144fcb1236c082278444e3c6df998e17ec (patch)
tree879bb402bca2d44eba5eb1571b2631c1830e6e72 /source3/modules/vfs_shadow_copy.c
parent6edd8e95f1ed0ac398c84e4050357097087ae15f (diff)
downloadsamba-2320b2144fcb1236c082278444e3c6df998e17ec.tar.gz
samba-2320b2144fcb1236c082278444e3c6df998e17ec.tar.bz2
samba-2320b2144fcb1236c082278444e3c6df998e17ec.zip
build: Remove SMB_STRUCT_DIRENT define
Diffstat (limited to 'source3/modules/vfs_shadow_copy.c')
-rw-r--r--source3/modules/vfs_shadow_copy.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/modules/vfs_shadow_copy.c b/source3/modules/vfs_shadow_copy.c
index f3f4292cf0..3f9bc96f0c 100644
--- a/source3/modules/vfs_shadow_copy.c
+++ b/source3/modules/vfs_shadow_copy.c
@@ -60,7 +60,7 @@ static int vfs_shadow_copy_debug_level = DBGC_VFS;
typedef struct {
int pos;
int num;
- SMB_STRUCT_DIRENT *dirs;
+ struct dirent *dirs;
} shadow_copy_Dir;
static bool shadow_copy_match_name(const char *name)
@@ -93,7 +93,7 @@ static SMB_STRUCT_DIR *shadow_copy_opendir(vfs_handle_struct *handle, const char
ZERO_STRUCTP(dirp);
while (True) {
- SMB_STRUCT_DIRENT *d;
+ struct dirent *d;
d = SMB_VFS_NEXT_READDIR(handle, p, NULL);
if (d == NULL) {
@@ -107,7 +107,7 @@ static SMB_STRUCT_DIR *shadow_copy_opendir(vfs_handle_struct *handle, const char
DEBUG(10,("shadow_copy_opendir: not hide [%s]\n",d->d_name));
- dirp->dirs = SMB_REALLOC_ARRAY(dirp->dirs,SMB_STRUCT_DIRENT, dirp->num+1);
+ dirp->dirs = SMB_REALLOC_ARRAY(dirp->dirs,struct dirent, dirp->num+1);
if (!dirp->dirs) {
DEBUG(0,("shadow_copy_opendir: Out of memory\n"));
break;
@@ -143,7 +143,7 @@ static SMB_STRUCT_DIR *shadow_copy_fdopendir(vfs_handle_struct *handle, files_st
ZERO_STRUCTP(dirp);
while (True) {
- SMB_STRUCT_DIRENT *d;
+ struct dirent *d;
d = SMB_VFS_NEXT_READDIR(handle, p, NULL);
if (d == NULL) {
@@ -157,7 +157,7 @@ static SMB_STRUCT_DIR *shadow_copy_fdopendir(vfs_handle_struct *handle, files_st
DEBUG(10,("shadow_copy_fdopendir: not hide [%s]\n",d->d_name));
- dirp->dirs = SMB_REALLOC_ARRAY(dirp->dirs,SMB_STRUCT_DIRENT, dirp->num+1);
+ dirp->dirs = SMB_REALLOC_ARRAY(dirp->dirs,struct dirent, dirp->num+1);
if (!dirp->dirs) {
DEBUG(0,("shadow_copy_fdopendir: Out of memory\n"));
break;
@@ -172,7 +172,7 @@ static SMB_STRUCT_DIR *shadow_copy_fdopendir(vfs_handle_struct *handle, files_st
return((SMB_STRUCT_DIR *)dirp);
}
-static SMB_STRUCT_DIRENT *shadow_copy_readdir(vfs_handle_struct *handle,
+static struct dirent *shadow_copy_readdir(vfs_handle_struct *handle,
SMB_STRUCT_DIR *_dirp,
SMB_STRUCT_STAT *sbuf)
{
@@ -233,7 +233,7 @@ static int shadow_copy_get_shadow_copy_data(vfs_handle_struct *handle,
while (True) {
SHADOW_COPY_LABEL *tlabels;
- SMB_STRUCT_DIRENT *d;
+ struct dirent *d;
d = SMB_VFS_NEXT_READDIR(handle, p, NULL);
if (d == NULL) {