From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25169 invoked by alias); 14 Aug 2008 07:45:28 -0000 Received: (qmail 25159 invoked by alias); 14 Aug 2008 07:45:28 -0000 X-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,KAM_MX,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on bastion.fedora.phx.redhat.com X-Spam-Level: Subject: master - cman: Silence some compiler warnings. To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 0c61f627118453f5fb21318b61d4ec931958e45a X-Git-Newrev: 16f532e1d432fd13256079a6c34963843fe4f1c4 From: Christine Caulfield Message-Id: <20080814074418.4C03312002B@lists.fedorahosted.org> Date: Thu, 14 Aug 2008 12:39:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2008-q3/txt/msg00254.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=16f532e1d432fd13256079a6c34963843fe4f1c4 Commit: 16f532e1d432fd13256079a6c34963843fe4f1c4 Parent: 0c61f627118453f5fb21318b61d4ec931958e45a Author: Christine Caulfield AuthorDate: Thu Aug 14 08:43:19 2008 +0100 Committer: Christine Caulfield CommitterDate: Thu Aug 14 08:43:19 2008 +0100 cman: Silence some compiler warnings. This only show up with some compiler versions, but I don't like compiler warnings! Signed-off-by: Christine Caulfield --- cman/daemon/ais.c | 2 +- cman/daemon/cman-preconfig.c | 2 +- cman/daemon/nodelist.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cman/daemon/ais.c b/cman/daemon/ais.c index f0eb2e5..87d2e97 100644 --- a/cman/daemon/ais.c +++ b/cman/daemon/ais.c @@ -230,7 +230,7 @@ static void cman_deliver_fn(unsigned int nodeid, struct iovec *iovec, int iov_le char *buf = iovec->iov_base; P_AIS("deliver_fn source nodeid = %d, len=%d, endian_conv=%d\n", - nodeid, iovec->iov_len, endian_conversion_required); + nodeid, (int)iovec->iov_len, endian_conversion_required); if (endian_conversion_required) { header->srcid = swab32(header->srcid); diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c index db2a52c..f90e9a7 100644 --- a/cman/daemon/cman-preconfig.c +++ b/cman/daemon/cman-preconfig.c @@ -333,7 +333,7 @@ static int verify_nodename(struct objdb_iface_ver0 *objdb, char *nodename) struct ifaddrs *ifa, *ifa_list; struct sockaddr *sa; unsigned int nodes_handle; - unsigned int find_handle; + unsigned int find_handle = 0; int error; /* nodename is either from commandline or from uname */ diff --git a/cman/daemon/nodelist.h b/cman/daemon/nodelist.h index 64a5807..faf63c1 100644 --- a/cman/daemon/nodelist.h +++ b/cman/daemon/nodelist.h @@ -74,7 +74,7 @@ static inline unsigned int nodelist_byname(OBJDB_API *corosync, { char *nodename; unsigned int nodes_handle; - unsigned int find_handle; + unsigned int find_handle = 0; nodes_handle = nodeslist_init(corosync, cluster_parent_handle, &find_handle); while (nodes_handle) {