public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - group_tool: fix const warnings
@ 2009-05-11 15:14 David Teigland
  0 siblings, 0 replies; only message in thread
From: David Teigland @ 2009-05-11 15:14 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=3c8af9c4a328600cf2eee8b3f2ad9189ce2a51fe
Commit:        3c8af9c4a328600cf2eee8b3f2ad9189ce2a51fe
Parent:        bb886fb7815c2c55daba3f0ecd837247853d4ebd
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Wed May 6 10:29:57 2009 +0200
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Mon May 11 10:05:06 2009 -0500

group_tool: fix const warnings

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 group/tool/main.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/group/tool/main.c b/group/tool/main.c
index b65e156..a84103f 100644
--- a/group/tool/main.c
+++ b/group/tool/main.c
@@ -207,7 +207,7 @@ static void decode_arguments(int argc, char **argv)
 #define EST_FAIL_START_WAIT   14
 #define EST_FAIL_ALL_STARTED  15
 
-char *ev_state_str(state)
+const char *ev_state_str(state)
 {
 	switch (state) {
 	case EST_JOIN_BEGIN:
@@ -245,10 +245,10 @@ char *ev_state_str(state)
 	}
 }
 
-char *state_str(group_data_t *data)
+const char *state_str(group_data_t *data)
 {
 	static char buf[128];
-	
+
 	memset(buf, 0, sizeof(buf));
 
 	if (!data->event_state && !data->event_nodeid)
@@ -283,7 +283,8 @@ static int groupd_list(int argc, char **argv)
 {
 	group_data_t data[MAX_GROUPS];
 	int i, j, rv, count = 0, level, ret = 0;
-	char *name, *state_header;
+	char *name;
+	const char *state_header;
 	int type_width = 16;
 	int level_width = 5;
 	int name_width = 32;
@@ -557,7 +558,7 @@ static void gfs_controld_list(void)
 }
 #endif
 
-static int connect_daemon(char *path)
+static int connect_daemon(const char *path)
 {
 	struct sockaddr_un sun;
 	socklen_t addrlen;


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

only message in thread, other threads:[~2009-05-11 15:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-11 15:14 cluster: STABLE3 - group_tool: fix const warnings David Teigland

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).