1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

wrepl_server: use a local 'local_owner' variable to make the code more readable

metze
(from samba4wins tree eba9a8ce0641a2984112f4e1473801fa449ed96d)
This commit is contained in:
Stefan Metzmacher 2008-03-20 13:26:14 +01:00 committed by Stefan Metzmacher
parent 780bc13736
commit c4402e3fde

View File

@ -1191,6 +1191,7 @@ static NTSTATUS r_do_sgroup_merge(struct wreplsrv_partner *partner,
size_t len;
bool changed_old_addrs = false;
bool become_owner = true;
const char *local_owner = partner->service->wins_db->local_owner;
merge = talloc(mem_ctx, struct winsdb_record);
NT_STATUS_HAVE_NO_MEMORY(merge);
@ -1265,7 +1266,7 @@ static NTSTATUS r_do_sgroup_merge(struct wreplsrv_partner *partner,
}
/* if we're the owner of the old record, we'll be the owner of the new one too */
if (strcmp(rec->wins_owner, partner->service->wins_db->local_owner)==0) {
if (strcmp(rec->wins_owner, local_owner)==0) {
become_owner = true;
}