diff options
author | Volker Lendecke <vl@samba.org> | 2014-07-09 13:06:45 +0000 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-07-24 21:41:10 +0200 |
commit | 7f623cbe7913d3a7572e8467d45b03b534f1534a (patch) | |
tree | ef8731134531c7b60445141041d2e27850199593 /source3/lib/messages.c | |
parent | 3f6926d94e536d05f4efe8cb44d0da71f6f74807 (diff) | |
download | samba-7f623cbe7913d3a7572e8467d45b03b534f1534a.tar.gz samba-7f623cbe7913d3a7572e8467d45b03b534f1534a.tar.xz samba-7f623cbe7913d3a7572e8467d45b03b534f1534a.zip |
messaging3: Remove two procid_str_static calls
... and thus implicit talloc_tos() calls
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/lib/messages.c')
-rw-r--r-- | source3/lib/messages.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 9514392c03..9d77bf8021 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -90,6 +90,7 @@ static void ping_message(struct messaging_context *msg_ctx, struct server_id src, DATA_BLOB *data) { + struct server_id_buf idbuf; const char *msg = "none"; char *free_me = NULL; @@ -98,8 +99,8 @@ static void ping_message(struct messaging_context *msg_ctx, data->length); msg = free_me; } - DEBUG(1,("INFO: Received PING message from PID %s [%s]\n", - procid_str_static(&src), msg)); + DEBUG(1, ("INFO: Received PING message from PID %s [%s]\n", + server_id_str_buf(src, &idbuf), msg)); TALLOC_FREE(free_me); messaging_send(msg_ctx, src, MSG_PONG, data); } @@ -143,13 +144,15 @@ static int traverse_fn(struct db_record *rec, const struct server_id *id, (const uint8_t *)msg_all->buf, msg_all->len); if (NT_STATUS_EQUAL(status, NT_STATUS_INVALID_HANDLE)) { + struct server_id_buf idbuf; /* * If the pid was not found delete the entry from * serverid.tdb */ - DEBUG(2, ("pid %s doesn't exist\n", procid_str_static(id))); + DEBUG(2, ("pid %s doesn't exist\n", + server_id_str_buf(*id, &idbuf))); dbwrap_record_delete(rec); } |