From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11730 invoked by alias); 27 Apr 2009 12:30:55 -0000 Received: (qmail 11724 invoked by alias); 27 Apr 2009 12:30:55 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_56,SPF_HELO_PASS X-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_56,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 - qdisk: scandisk fix obvious missing consts 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: ccc8d0e67b48e0e6f1901b2a82576dde5ec2d3dd X-Git-Newrev: 5168c6910748904e82de6f7648399ea621047157 From: "Fabio M. Di Nitto" Message-Id: <20090427123027.575961202D2@lists.fedorahosted.org> Date: Mon, 27 Apr 2009 12:30: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/msg00115.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=5168c6910748904e82de6f7648399ea621047157 Commit: 5168c6910748904e82de6f7648399ea621047157 Parent: ccc8d0e67b48e0e6f1901b2a82576dde5ec2d3dd Author: Fabio M. Di Nitto AuthorDate: Mon Apr 27 14:29:50 2009 +0200 Committer: Fabio M. Di Nitto CommitterDate: Mon Apr 27 14:29:50 2009 +0200 qdisk: scandisk fix obvious missing consts Signed-off-by: Fabio M. Di Nitto --- cman/qdisk/scandisk.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cman/qdisk/scandisk.c b/cman/qdisk/scandisk.c index 39acb31..1eaa75e 100644 --- a/cman/qdisk/scandisk.c +++ b/cman/qdisk/scandisk.c @@ -123,7 +123,7 @@ static struct devnode *alloc_list_obj(struct devlisthead *devlisthead, int maj, * Once we find a device, we know maj/min and this new path. * add_path_obj will add the given path to the devnode */ -static int add_path_obj(struct devnode *startnode, char *path) +static int add_path_obj(struct devnode *startnode, const char *path) { struct devpath *nextpath, *startpath; @@ -155,7 +155,7 @@ static int add_path_obj(struct devnode *startnode, char *path) * this function simply avoid duplicate code around. */ static int add_lsdev_block(struct devlisthead *devlisthead, struct stat *sb, - char *path) + const char *path) { int maj, min; struct devnode *startnode; @@ -200,7 +200,7 @@ static int dev_is_block(struct stat *sb, char *path) * -1 for generic errors * -2 -ENOMEM */ -static int lsdev(struct devlisthead *devlisthead, char *path) +static int lsdev(struct devlisthead *devlisthead, const char *path) { int i, n, err = 0; struct dirent **namelist; @@ -514,7 +514,7 @@ static int sysfs_is_removable(char *path) * always return the amount of entries in the dir if successful * or any return value from scandir. */ -static int sysfs_has_subdirs_entries(char *path, char *subdir) +static int sysfs_has_subdirs_entries(char *path, const char *subdir) { char newpath[MAXPATHLEN]; struct dirent **namelist; @@ -621,7 +621,7 @@ static int sysfs_is_disk(char *path) * -1 on generic error * -2 -ENOMEM */ -static int scansysfs(struct devlisthead *devlisthead, char *path, int level, int parent_holder) +static int scansysfs(struct devlisthead *devlisthead, const char *path, int level, int parent_holder) { struct devnode *startnode; int i, n, maj, min, has_holder = 0;