From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29082 invoked by alias); 11 May 2009 15:19:30 -0000 Received: (qmail 29076 invoked by alias); 11 May 2009 15:19:29 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion2.fedora.phx.redhat.com Subject: cluster: STABLE3 - libgroup: fix const warning To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/STABLE3 X-Git-Reftype: branch X-Git-Oldrev: 1f0e840faf13e9e79baf50fef0c71701a0e9b81f X-Git-Newrev: e2acd5196f985af096de5371da80b087ac5f29d4 From: David Teigland Message-Id: <20090511151246.1B8491201EC@lists.fedorahosted.org> Date: Mon, 11 May 2009 15:19:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q2/txt/msg00280.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=e2acd5196f985af096de5371da80b087ac5f29d4 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);