diff options
author | Michael Adam <obnox@samba.org> | 2013-05-28 17:01:20 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-10-05 09:21:18 +1300 |
commit | e86923eb52633c5b6133c45678355ce69bb43a54 (patch) | |
tree | cc038415085629e7362aec5d9303a98fe200daf1 /source3 | |
parent | dbdb436a80e2fb75d9fd8ae17192702123c3b530 (diff) | |
download | samba-e86923eb52633c5b6133c45678355ce69bb43a54.tar.gz samba-e86923eb52633c5b6133c45678355ce69bb43a54.tar.bz2 samba-e86923eb52633c5b6133c45678355ce69bb43a54.zip |
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 <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_shadow_copy2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index 952b010acf..e227b1074e 100644 --- a/source3/modules/vfs_shadow_copy2.c +++ b/source3/modules/vfs_shadow_copy2.c @@ -1036,12 +1036,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, |