summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-24 04:38:31 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-24 04:38:31 +0200
commit2d46992337befd46c65df5e60a821bdf9f340b6e (patch)
tree98aa6acb833437e56593d23fc5fd18ced329f37f
parent2cabbb2eeb7d62f8df1c4d20d90adbd53828dd8a (diff)
downloadsamba-2d46992337befd46c65df5e60a821bdf9f340b6e.tar.gz
samba-2d46992337befd46c65df5e60a821bdf9f340b6e.tar.bz2
samba-2d46992337befd46c65df5e60a821bdf9f340b6e.zip
Remove const so return value can be freed.
-rw-r--r--source4/param/loadparm.c10
-rw-r--r--source4/param/param.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 2808cb9f28..fb8afe456c 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -2634,27 +2634,27 @@ void lp_smbcli_session_options(struct loadparm_context *lp_ctx,
options->plaintext_auth = lp_client_plaintext_auth(lp_ctx);
}
-_PUBLIC_ const char *lp_tls_keyfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx)
+_PUBLIC_ char *lp_tls_keyfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx)
{
return private_path(mem_ctx, lp_ctx, lp_ctx->globals->tls_keyfile);
}
-_PUBLIC_ const char *lp_tls_certfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx)
+_PUBLIC_ char *lp_tls_certfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx)
{
return private_path(mem_ctx, lp_ctx, lp_ctx->globals->tls_certfile);
}
-_PUBLIC_ const char *lp_tls_cafile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx)
+_PUBLIC_ char *lp_tls_cafile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx)
{
return private_path(mem_ctx, lp_ctx, lp_ctx->globals->tls_cafile);
}
-_PUBLIC_ const char *lp_tls_crlfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx)
+_PUBLIC_ char *lp_tls_crlfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx)
{
return private_path(mem_ctx, lp_ctx, lp_ctx->globals->tls_crlfile);
}
-_PUBLIC_ const char *lp_tls_dhpfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx)
+_PUBLIC_ char *lp_tls_dhpfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx)
{
return private_path(mem_ctx, lp_ctx, lp_ctx->globals->tls_dhpfile);
}
diff --git a/source4/param/param.h b/source4/param/param.h
index 9c20931186..6dec44b61c 100644
--- a/source4/param/param.h
+++ b/source4/param/param.h
@@ -78,11 +78,11 @@ int lp_kpasswd_port(struct loadparm_context *);
int lp_web_port(struct loadparm_context *);
const char *lp_swat_directory(struct loadparm_context *);
bool lp_tls_enabled(struct loadparm_context *);
-const char *lp_tls_keyfile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
-const char *lp_tls_certfile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
-const char *lp_tls_cafile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
-const char *lp_tls_crlfile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
-const char *lp_tls_dhpfile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
+char *lp_tls_keyfile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
+char *lp_tls_certfile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
+char *lp_tls_cafile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
+char *lp_tls_crlfile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
+char *lp_tls_dhpfile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
const char *lp_share_backend(struct loadparm_context *);
const char *lp_sam_url(struct loadparm_context *);
const char *lp_idmap_url(struct loadparm_context *);