diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-06-08 14:05:55 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-06-09 12:40:09 +0200 |
commit | 16b1c77644217796f70a3a0bf1d95c245f9ee2d9 (patch) | |
tree | b08d316880e1a03d1a7fad4c5ced8d141878986c /source4/cluster/local.c | |
parent | d01dbd6c3fd9ca2595d65991b56db4400a35ece0 (diff) | |
download | samba-16b1c77644217796f70a3a0bf1d95c245f9ee2d9.tar.gz samba-16b1c77644217796f70a3a0bf1d95c245f9ee2d9.tar.xz samba-16b1c77644217796f70a3a0bf1d95c245f9ee2d9.zip |
lib/util Bring procid_str() into lib/util as server_id_string()
This is needed for OpenChange, which prints Samba struct server_id
values in debug messages.
Andrew Bartlett
Diffstat (limited to 'source4/cluster/local.c')
-rw-r--r-- | source4/cluster/local.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source4/cluster/local.c b/source4/cluster/local.c index e7b648fc9be..833a86b07fb 100644 --- a/source4/cluster/local.c +++ b/source4/cluster/local.c @@ -42,16 +42,6 @@ static struct server_id local_id(struct cluster_ops *ops, uint64_t pid, uint32_t /* - return a server_id as a string -*/ -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.vnn, (unsigned long long)id.pid, id.task_id); -} - - -/* open a tmp tdb for the local node. By using smbd_tmp_path() we don't need TDB_CLEAR_IF_FIRST as the tmp path is wiped at startup */ @@ -98,7 +88,6 @@ static NTSTATUS local_message_send(struct cluster_ops *ops, static struct cluster_ops cluster_local_ops = { .cluster_id = local_id, - .cluster_id_string = local_id_string, .cluster_tdb_tmp_open = local_tdb_tmp_open, .backend_handle = local_backend_handle, .message_init = local_message_init, |