]> git.proxmox.com Git - mirror_corosync.git/commitdiff
totemip: Remove unused totemip_copy_endian_convert
authorJan Friesse <jfriesse@redhat.com>
Fri, 14 Feb 2020 08:52:40 +0000 (09:52 +0100)
committerJan Friesse <jfriesse@redhat.com>
Mon, 17 Feb 2020 16:31:55 +0000 (17:31 +0100)
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
exec/totemip.c

index cd6eb1b56450c0e6fbf0d5e15e3f38e80fdc0c09..150d5380fec175c5430b88a1fbbdf085394b6cd4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2005-2019 Red Hat, Inc.
+ * Copyright (c) 2005-2020 Red Hat, Inc.
  *
  * All rights reserved.
  *
@@ -126,14 +126,6 @@ void totemip_copy(struct totem_ip_address *addr1,
        memcpy(addr1, addr2, sizeof(struct totem_ip_address));
 }
 
-void totemip_copy_endian_convert(struct totem_ip_address *addr1,
-                                const struct totem_ip_address *addr2)
-{
-       addr1->nodeid = swab32(addr2->nodeid);
-       addr1->family = swab16(addr2->family);
-       memcpy(addr1->addr, addr2->addr, TOTEMIP_ADDRLEN);
-}
-
 /*
  * Multicast address range is 224.0.0.0 to 239.255.255.255 this
  * translates to the first 4 bits == 1110 (0xE).