From a6603416561dc8cbdd3b4265571a0e7b3ed6ed66 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 30 Mar 2009 21:18:29 +0000 Subject: [PATCH] totemip.c: avoid 1 warning * exec/totemip.c (totemip_print): Add const. * include/corosync/totem/totemip.h: Ditto. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1974 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/totemip.c | 2 +- include/corosync/totem/totemip.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/totemip.c b/exec/totemip.c index c514c8a0..25318105 100644 --- a/exec/totemip.c +++ b/exec/totemip.c @@ -207,7 +207,7 @@ int totemip_localhost_check(struct totem_ip_address *addr) return totemip_equal(addr, &localhost); } -const char *totemip_print(struct totem_ip_address *addr) +const char *totemip_print(const struct totem_ip_address *addr) { static char buf[INET6_ADDRSTRLEN]; diff --git a/include/corosync/totem/totemip.h b/include/corosync/totem/totemip.h index 8c367645..26b1cbd7 100644 --- a/include/corosync/totem/totemip.h +++ b/include/corosync/totem/totemip.h @@ -67,7 +67,7 @@ extern void totemip_copy(struct totem_ip_address *addr1, struct totem_ip_address extern void totemip_copy_endian_convert(struct totem_ip_address *addr1, struct totem_ip_address *addr2); int totemip_localhost(int family, struct totem_ip_address *localhost); extern int totemip_localhost_check(struct totem_ip_address *addr); -extern const char *totemip_print(struct totem_ip_address *addr); +extern const char *totemip_print(const struct totem_ip_address *addr); extern int totemip_sockaddr_to_totemip_convert(struct sockaddr_storage *saddr, struct totem_ip_address *ip_addr); extern int totemip_totemip_to_sockaddr_convert(struct totem_ip_address *ip_addr, uint16_t port, struct sockaddr_storage *saddr, int *addrlen);