1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-daemon: Drop unused function ctdb_set_socketname()

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-05-10 17:34:19 +10:00 committed by Amitay Isaacs
parent 5f478b7c5f
commit d75fa2c3fd
2 changed files with 0 additions and 12 deletions

View File

@ -243,7 +243,6 @@ int ctdb_ctrl_get_all_tunables(struct ctdb_context *ctdb,
*/
void ctdb_set_flags(struct ctdb_context *ctdb, unsigned flags);
int ctdb_set_socketname(struct ctdb_context *ctdb, const char *socketname);
const char *ctdb_get_socketname(struct ctdb_context *ctdb);
/* return pnn of this node */

View File

@ -1586,17 +1586,6 @@ void ctdb_set_flags(struct ctdb_context *ctdb, unsigned flags)
ctdb->flags |= flags;
}
/*
setup the local socket name
*/
int ctdb_set_socketname(struct ctdb_context *ctdb, const char *socketname)
{
ctdb->daemon.name = talloc_strdup(ctdb, socketname);
CTDB_NO_MEMORY(ctdb, ctdb->daemon.name);
return 0;
}
const char *ctdb_get_socketname(struct ctdb_context *ctdb)
{
return ctdb->daemon.name;