Fixup use of const.
authorJeremy Allison <jra@samba.org>
Thu, 5 May 2011 23:31:41 +0000 (16:31 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 5 May 2011 23:44:07 +0000 (01:44 +0200)
source3/modules/vfs_scannedonly.c

index fdc025d58350c2e41ac2a80c8d884b7928b14d16..549eb304bdd0fde7f4e02008bfe2a8ea4fcde5dc 100644 (file)
@@ -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;
        }