summaryrefslogtreecommitdiff
path: root/source4/cluster/local.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-02 10:06:56 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-05-03 07:37:06 +0200
commitf13b7ec0791dc4f805a66300a540238aa57d3337 (patch)
tree994ba84fec9a20402849f8c275b742575d00da82 /source4/cluster/local.c
parent85eb4377dbc9e2d25e0ee2e358e785347b09f0a7 (diff)
downloadsamba-f13b7ec0791dc4f805a66300a540238aa57d3337.tar.gz
samba-f13b7ec0791dc4f805a66300a540238aa57d3337.tar.bz2
samba-f13b7ec0791dc4f805a66300a540238aa57d3337.zip
s4-cluster: Remove const from cluster_id_string()
This allows the caller to talloc_free() this result. Andrew Bartlett
Diffstat (limited to 'source4/cluster/local.c')
-rw-r--r--source4/cluster/local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/cluster/local.c b/source4/cluster/local.c
index 0dc8b869dc..17de77f41e 100644
--- a/source4/cluster/local.c
+++ b/source4/cluster/local.c
@@ -44,7 +44,7 @@ static struct server_id local_id(struct cluster_ops *ops, uint64_t pid, uint32_t
/*
return a server_id as a string
*/
-static const char *local_id_string(struct cluster_ops *ops,
+static char *local_id_string(struct cluster_ops *ops,
TALLOC_CTX *mem_ctx, struct server_id id)
{
return talloc_asprintf(mem_ctx, "%u.%llu.%u", id.node, (unsigned long long)id.pid, id.id2);