git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d6ebe0
)
Fixup use of const.
author
Jeremy Allison
<jra@samba.org>
Thu, 5 May 2011 23:31:41 +0000
(16:31 -0700)
committer
Jeremy Allison
<jra@samba.org>
Thu, 5 May 2011 23:44:07 +0000
(
01:44
+0200)
source3/modules/vfs_scannedonly.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_scannedonly.c
b/source3/modules/vfs_scannedonly.c
index fdc025d58350c2e41ac2a80c8d884b7928b14d16..549eb304bdd0fde7f4e02008bfe2a8ea4fcde5dc 100644
(file)
--- a/
source3/modules/vfs_scannedonly.c
+++ b/
source3/modules/vfs_scannedonly.c
@@
-165,7
+165,7
@@
static char *cachefile_name_f_fullpath(TALLOC_CTX *ctx,
static char *construct_full_path(TALLOC_CTX *ctx, vfs_handle_struct * handle,
const char *somepath, bool ending_slash)
{
- char *tmp;
+ c
onst c
har *tmp;
if (!somepath) {
return NULL;
@@
-176,7
+176,7
@@
static char *construct_full_path(TALLOC_CTX *ctx, vfs_handle_struct * handle,
}
return talloc_strdup(ctx,somepath);
}
- tmp
=(char *)
somepath;
+ tmp
=
somepath;
if (tmp[0]=='.'&&tmp[1]=='/') {
tmp+=2;
}