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]

cluster: STABLE3 - libfenced: fix const warning


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=21aa0863afaf265d8bdbff3e0ce28f22748b80b3
Commit:        21aa0863afaf265d8bdbff3e0ce28f22748b80b3
Parent:        96d261a9cae37c23b807abb584138dd749feee5a
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Wed May 6 07:54:51 2009 +0200
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Mon May 11 10:05:05 2009 -0500

libfenced: fix const warning

cluster-stable3/fence/libfenced/main.c:
 warning: passing argument 1 of â??do_connectâ?? discards qualifiers from pointer target type

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 fence/libfenced/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fence/libfenced/main.c b/fence/libfenced/main.c
index d60647d..4b8aea8 100644
--- a/fence/libfenced/main.c
+++ b/fence/libfenced/main.c
@@ -47,7 +47,7 @@ static int do_write(int fd, void *buf, size_t count)
 	return 0;
 }
 
-static int do_connect(char *sock_path)
+static int do_connect(const char *sock_path)
 {
 	struct sockaddr_un sun;
 	socklen_t addrlen;


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