diff options
author | Jeremy Allison <jra@samba.org> | 2011-05-05 16:31:41 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-05-06 01:44:07 +0200 |
commit | bb00bdbe8ff4efde18d7d15f533b98ee78ebc328 (patch) | |
tree | 4da313082dcb9f6cdda567add29e1f2b888559c9 | |
parent | 7d6ebe0de7d99c20854cafb8af50fe8f30ed778a (diff) | |
download | samba-bb00bdbe8ff4efde18d7d15f533b98ee78ebc328.tar.gz samba-bb00bdbe8ff4efde18d7d15f533b98ee78ebc328.tar.bz2 samba-bb00bdbe8ff4efde18d7d15f533b98ee78ebc328.zip |
Fixup use of const.
-rw-r--r-- | source3/modules/vfs_scannedonly.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/vfs_scannedonly.c b/source3/modules/vfs_scannedonly.c index fdc025d583..549eb304bd 100644 --- 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; + const char *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; } |