summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2007-12-27 20:00:13 +0100
committerVolker Lendecke <vl@samba.org>2007-12-29 17:14:25 +0100
commita60867b67e53d8a0f08de402e160478efc089a72 (patch)
tree0b6c037d44e872dc5b8596524d8ee89558640af9
parent397b4d5397e87fa60e35ac1f36facf2411ebc126 (diff)
downloadsamba-a60867b67e53d8a0f08de402e160478efc089a72.tar.gz
samba-a60867b67e53d8a0f08de402e160478efc089a72.tar.bz2
samba-a60867b67e53d8a0f08de402e160478efc089a72.zip
Apply some const
(This used to be commit 241b72141e3d9e31e30977517f871a97d74bbf7d)
-rw-r--r--source3/smbd/vfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index fefae38932..ed0406211d 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -31,7 +31,7 @@ static_decl_vfs;
struct vfs_init_function_entry {
char *name;
- vfs_op_tuple *vfs_op_tuples;
+ const vfs_op_tuple *vfs_op_tuples;
struct vfs_init_function_entry *prev, *next;
};
@@ -55,7 +55,7 @@ static struct vfs_init_function_entry *vfs_find_backend_entry(const char *name)
return NULL;
}
-NTSTATUS smb_register_vfs(int version, const char *name, vfs_op_tuple *vfs_op_tuples)
+NTSTATUS smb_register_vfs(int version, const char *name, const vfs_op_tuple *vfs_op_tuples)
{
struct vfs_init_function_entry *entry = backends;
@@ -110,13 +110,13 @@ static inline void vfs_set_operation(struct vfs_ops * vfs, vfs_op_type which,
bool vfs_init_custom(connection_struct *conn, const char *vfs_object)
{
- vfs_op_tuple *ops;
+ const vfs_op_tuple *ops;
char *module_path = NULL;
char *module_name = NULL;
char *module_param = NULL, *p;
int i;
vfs_handle_struct *handle;
- struct vfs_init_function_entry *entry;
+ const struct vfs_init_function_entry *entry;
if (!conn||!vfs_object||!vfs_object[0]) {
DEBUG(0,("vfs_init_custon() called with NULL pointer or emtpy vfs_object!\n"));