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:
parent
5f478b7c5f
commit
d75fa2c3fd
@ -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 */
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user