public inbox for
help / color / mirror / Atom feed
From: David Teigland <>
Subject: cluster: STABLE3 - libgroup: fix const warning
Date: Mon, 11 May 2009 15:19:00 -0000	[thread overview]
Message-ID: <> (raw)

Commit:        e2acd5196f985af096de5371da80b087ac5f29d4
Parent:        1f0e840faf13e9e79baf50fef0c71701a0e9b81f
Author:        Fabio M. Di Nitto <>
AuthorDate:    Wed May 6 08:24:18 2009 +0200
Committer:     David Teigland <>
CommitterDate: Mon May 11 10:05:05 2009 -0500

libgroup: fix const warning

group_init is only spotted when building clients like fenced.

Signed-off-by: Fabio M. Di Nitto <>
 group/lib/libgroup.c |    4 ++--
 group/lib/libgroup.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/group/lib/libgroup.c b/group/lib/libgroup.c
index c86ac25..de0321a 100644
--- a/group/lib/libgroup.c
+++ b/group/lib/libgroup.c
@@ -172,7 +172,7 @@ struct group_handle
 	char prog_name[32];
-static int _joinleave(group_handle_t handle, char *name, char *cmd)
+static int _joinleave(group_handle_t handle, const char *name, const char *cmd)
 	char buf[GROUPD_MSGLEN];
 	struct group_handle *h = (struct group_handle *) handle;
@@ -259,7 +259,7 @@ static int connect_groupd(void)
 	return fd;
-group_handle_t group_init(void *private, char *prog_name, int level,
+group_handle_t group_init(void *private, const char *prog_name, int level,
 			  group_callbacks_t *cbs, int timeout)
 	struct group_handle *h;
diff --git a/group/lib/libgroup.h b/group/lib/libgroup.h
index 82ef7e1..fd100a8 100644
--- a/group/lib/libgroup.h
+++ b/group/lib/libgroup.h
@@ -36,7 +36,7 @@ typedef struct {
 	group_deliver_t deliver;
 } group_callbacks_t;
-group_handle_t group_init(void *priv, char *prog_name, int level, group_callbacks_t *cbs, int timeout);
+group_handle_t group_init(void *priv, const char *prog_name, int level, group_callbacks_t *cbs, int timeout);
 int group_exit(group_handle_t handle);
 int group_join(group_handle_t handle, char *name);

                 reply	other threads:[~2009-05-11 15:19 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:

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

  git send-email \ \ \ \

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