diff options
author | Volker Lendecke <vl@samba.org> | 2010-03-22 09:16:57 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-03-22 09:30:51 +0100 |
commit | 8195832c6cde7ebb2de5543be76979a111bd5712 (patch) | |
tree | 12bbaa175d7906bc4d2d682efacd1b0af37ab11c | |
parent | 678815081da171e10123b1f6768a554adc1bedb4 (diff) | |
download | samba-8195832c6cde7ebb2de5543be76979a111bd5712.tar.gz samba-8195832c6cde7ebb2de5543be76979a111bd5712.tar.bz2 samba-8195832c6cde7ebb2de5543be76979a111bd5712.zip |
s3: file_walk_table -> files_forall
This is more in line with the rest of the Samba code, like connections_forall
etc.
-rw-r--r-- | source3/include/proto.h | 2 | ||||
-rw-r--r-- | source3/modules/vfs_aio_fork.c | 2 | ||||
-rw-r--r-- | source3/smbd/files.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 9200802128..69fd591057 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -6378,7 +6378,7 @@ void file_close_pid(uint16 smbpid, int vuid); void file_init(void); void file_close_user(int vuid); void file_dump_open_table(void); -struct files_struct *file_walk_table( +struct files_struct *files_forall( struct files_struct *(*fn)(struct files_struct *fsp, void *private_data), void *private_data); diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index c725fa6b90..ebad4b4c43 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -479,7 +479,7 @@ static NTSTATUS create_aio_child(struct aio_child_list *children, if (result->pid == 0) { close(fdpair[0]); result->sockfd = fdpair[1]; - file_walk_table(close_fsp_fd, NULL); + files_forall(close_fsp_fd, NULL); aio_child_loop(result->sockfd, result->map); } diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 6b8e96e733..abd654c015 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -222,7 +222,7 @@ void file_close_user(int vuid) * Walk the files table until "fn" returns non-NULL */ -struct files_struct *file_walk_table( +struct files_struct *files_forall( struct files_struct *(*fn)(struct files_struct *fsp, void *private_data), void *private_data) |