4
0
Эх сурвалжийг харах

totemip: Remove unused totemip_copy_endian_convert

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
Jan Friesse 6 жил өмнө
parent
commit
38d1d10d39
1 өөрчлөгдсөн 1 нэмэгдсэн , 9 устгасан
  1. 1 9
      exec/totemip.c

+ 1 - 9
exec/totemip.c

@@ -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).