1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

lib: Use struct initialization in imessaging_client_init()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Mar 28 09:13:43 UTC 2024 on atb-devel-224
This commit is contained in:
Volker Lendecke
2024-02-27 15:39:30 +01:00
committed by Andreas Schneider
parent 2d4aa59994
commit a3126ebfe5

View File

@ -823,14 +823,14 @@ struct imessaging_context *imessaging_client_init(TALLOC_CTX *mem_ctx,
struct loadparm_context *lp_ctx, struct loadparm_context *lp_ctx,
struct tevent_context *ev) struct tevent_context *ev)
{ {
struct server_id id; struct server_id id = {
ZERO_STRUCT(id); .pid = getpid(),
id.pid = getpid(); .task_id = generate_random(),
id.task_id = generate_random(); .vnn = NONCLUSTER_VNN,
id.vnn = NONCLUSTER_VNN;
/* This is because we are not in the s3 serverid database */ /* This is because we are not in the s3 serverid database */
id.unique_id = SERVERID_UNIQUE_ID_NOT_TO_VERIFY; .unique_id = SERVERID_UNIQUE_ID_NOT_TO_VERIFY,
};
return imessaging_init_discard_incoming(mem_ctx, lp_ctx, id, ev); return imessaging_init_discard_incoming(mem_ctx, lp_ctx, id, ev);
} }