This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: STABLE3 - rgmanager: Fix build warnings in fdops.c
- From: Lon Hohberger <lon at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Mon, 22 Jun 2009 13:32:36 +0000 (UTC)
- Subject: cluster: STABLE3 - rgmanager: Fix build warnings in fdops.c
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=7506ce9125e8daf3f808c310a931893ec87c20ba
Commit: 7506ce9125e8daf3f808c310a931893ec87c20ba
Parent: 1b308fae63d4fa6f9bc56f6f92eb8de6ebc4efc5
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 09:32:02 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