public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: David Teigland <teigland@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: cluster: STABLE3 - group_tool: fix const warnings
Date: Mon, 11 May 2009 15:14:00 -0000	[thread overview]
Message-ID: <20090511151315.1B30512022C@lists.fedorahosted.org> (raw)

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;


                 reply	other threads:[~2009-05-11 15:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090511151315.1B30512022C@lists.fedorahosted.org \
    --to=teigland@fedoraproject.org \
    --cc=cluster-cvs-relay@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).