From c44688de578e108e40a87ba5196e488248ef249c Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Thu, 6 Jul 2006 22:34:14 +0000 Subject: [PATCH] The testcpg tool now prints IP addresses instead of a hex value indicating the node id. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1103 fd59a12c-fef9-0310-b244-a6a79926bd2f --- test/testcpg.c | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/test/testcpg.c b/test/testcpg.c index 0249bf36..c5b52a02 100644 --- a/test/testcpg.c +++ b/test/testcpg.c @@ -42,6 +42,8 @@ #include #include #include +#include +#include #include "saAis.h" #include "cpg.h" @@ -76,18 +78,29 @@ void ConfchgCallback ( struct cpg_address *joined_list, int joined_list_entries) { int i; + struct in_addr saddr; printf("\nConfchgCallback: group '"); print_cpgname(groupName); printf("'\n"); - for (i=0; i