mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2026-01-14 18:17:33 +00:00
totemip: Use res in totemip_sa_equal
Setting res to -1 was not entirely following semantics of "equal" operation. Set it to 0 and return it when families differs makes compiler happy. Signed-off-by: Jan Friesse <jfriesse@redhat.com> Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
This commit is contained in:
parent
299c9c5b70
commit
d4d48d9268
@ -97,10 +97,10 @@ int totemip_sa_equal(const struct totem_ip_address *totem_ip,
|
||||
{
|
||||
int res;
|
||||
|
||||
res = -1;
|
||||
res = 0;
|
||||
|
||||
if (totem_ip->family != sa->sa_family) {
|
||||
return 0;
|
||||
return (res);
|
||||
}
|
||||
|
||||
switch (totem_ip->family) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user