public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: "Fabio M. Di Nitto" <fabbione@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: cluster: STABLE3 - qdisk: scandisk fix obvious missing consts Date: Mon, 27 Apr 2009 12:30:00 -0000 [thread overview] Message-ID: <20090427123027.575961202D2@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=5168c6910748904e82de6f7648399ea621047157 Commit: 5168c6910748904e82de6f7648399ea621047157 Parent: ccc8d0e67b48e0e6f1901b2a82576dde5ec2d3dd Author: Fabio M. Di Nitto <fdinitto@redhat.com> AuthorDate: Mon Apr 27 14:29:50 2009 +0200 Committer: Fabio M. Di Nitto <fdinitto@redhat.com> CommitterDate: Mon Apr 27 14:29:50 2009 +0200 qdisk: scandisk fix obvious missing consts Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com> --- 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;
reply other threads:[~2009-04-27 12:30 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=20090427123027.575961202D2@lists.fedorahosted.org \ --to=fabbione@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: linkBe 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).