From 1a855eb741c356262382f04357abdabe0bd2ad1b Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 20 Nov 2009 11:56:16 +0100 Subject: s4:ntvfs/posix/pvfs_resolve - Fix "discard const" warning I removed two "const"s in front of string declarations to achieve this. Signed-off-by: Andrew Tridgell --- source4/ntvfs/posix/pvfs_resolve.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/ntvfs/posix/pvfs_resolve.c') diff --git a/source4/ntvfs/posix/pvfs_resolve.c b/source4/ntvfs/posix/pvfs_resolve.c index c01799e68c..8f462648bd 100644 --- a/source4/ntvfs/posix/pvfs_resolve.c +++ b/source4/ntvfs/posix/pvfs_resolve.c @@ -696,7 +696,7 @@ NTSTATUS pvfs_resolve_name_handle(struct pvfs_state *pvfs, if (h->have_opendb_entry) { struct odb_lock *lck; - const char *name = NULL; + char *name = NULL; lck = odb_lock(h, h->pvfs->odb_context, &h->odb_locking_key); if (lck == NULL) { @@ -707,7 +707,7 @@ NTSTATUS pvfs_resolve_name_handle(struct pvfs_state *pvfs, return NT_STATUS_INTERNAL_DB_CORRUPTION; } - status = odb_get_path(lck, &name); + status = odb_get_path(lck, (const char **) &name); if (NT_STATUS_IS_OK(status)) { /* * This relies an the fact that @@ -719,7 +719,7 @@ NTSTATUS pvfs_resolve_name_handle(struct pvfs_state *pvfs, if (strcmp(h->name->full_name, name) != 0) { const char *orig_dir; const char *new_file; - const char *new_orig; + char *new_orig; char *delim; delim = strrchr(name, '/'); -- cgit