This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

rgmanager: master - rgmanager: Fix build warnings in fdops.c


Gitweb:        http://git.fedorahosted.org/git/rgmanager.git?p=rgmanager.git;a=commitdiff;h=2fadc90177eb47037c5c39d3b11dcd169431143f
Commit:        2fadc90177eb47037c5c39d3b11dcd169431143f
Parent:        2a707480507ab9a3c289ff3e1046ca263aa12e7d
Author:        Lon Hohberger <lhh@redhat.com>
AuthorDate:    Fri May 29 10:48:05 2009 -0400
Committer:     Lon Hohberger <lhh@redhat.com>
CommitterDate: Mon Jun 22 12:50:22 2009 -0400

rgmanager: Fix build warnings in fdops.c

Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
 rgmanager/src/clulib/fdops.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/rgmanager/src/clulib/fdops.c b/rgmanager/src/clulib/fdops.c
index afeced9..c7857c6 100644
--- a/rgmanager/src/clulib/fdops.c
+++ b/rgmanager/src/clulib/fdops.c
@@ -6,6 +6,7 @@
 #include <sys/types.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <fdops.h>
 
 /**
  * This is a wrapper around select which will retry in the case we receive
@@ -71,7 +72,7 @@ _write_retry(int fd, void *buf, int count, struct timeval * timeout)
 		/* 
 		 * Attempt to write to fd
 		 */
-		n = write(fd, buf + (off_t) total, remain);
+		n = write(fd, (char *)buf + (off_t) total, remain);
 
 		/*
 		 * When we know our fd was select()ed and we receive 0 bytes


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]