From 7c14f3479dc824768ace8a470a1fd147bfc8b914 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 28 May 2013 17:01:20 +0200 Subject: [PATCH] shadow_copy2: make shadow_copy2_find_snapdir() return const char * instead of char *. This eliminates compiler warnings. snapdir is a const string in all occasions. Signed-off-by: Michael Adam Reviewed-by: Andrew Bartlett (cherry picked from commit e86923eb52633c5b6133c45678355ce69bb43a54) --- source3/modules/vfs_shadow_copy2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index f17f90e725d..d87b3271050 100644 --- a/source3/modules/vfs_shadow_copy2.c +++ b/source3/modules/vfs_shadow_copy2.c @@ -1038,12 +1038,12 @@ static char *have_snapdir(struct vfs_handle_struct *handle, * Find the snapshot directory (if any) for the given * filename (which is relative to the share). */ -static char *shadow_copy2_find_snapdir(TALLOC_CTX *mem_ctx, - struct vfs_handle_struct *handle, - struct smb_filename *smb_fname) +static const char *shadow_copy2_find_snapdir(TALLOC_CTX *mem_ctx, + struct vfs_handle_struct *handle, + struct smb_filename *smb_fname) { char *path, *p; - char *snapdir; + const char *snapdir; struct shadow_copy2_config *config; SMB_VFS_HANDLE_GET_DATA(handle, config, struct shadow_copy2_config, -- 2.11.4.GIT