public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* master - cman: Silence some compiler warnings.
@ 2008-08-14 12:39 Christine Caulfield
  0 siblings, 0 replies; only message in thread
From: Christine Caulfield @ 2008-08-14 12:39 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=16f532e1d432fd13256079a6c34963843fe4f1c4
Commit:        16f532e1d432fd13256079a6c34963843fe4f1c4
Parent:        0c61f627118453f5fb21318b61d4ec931958e45a
Author:        Christine Caulfield <ccaulfie@redhat.com>
AuthorDate:    Thu Aug 14 08:43:19 2008 +0100
Committer:     Christine Caulfield <ccaulfie@redhat.com>
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 <ccaulfie@redhat.com>
---
 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) {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-14  7:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-14 12:39 master - cman: Silence some compiler warnings Christine Caulfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).