This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: STABLE3 - fenced: add const to ccs functions
- From: "Fabio M. Di Nitto" <fabbione at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Tue, 12 May 2009 17:34:03 +0000 (UTC)
- Subject: cluster: STABLE3 - fenced: add const to ccs functions
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=6d4096b604df7fdb1ca980571d6588e478b065d6
Commit: 6d4096b604df7fdb1ca980571d6588e478b065d6
Parent: f25f81abd05550d0cd8453bc3bba12e859a0ff9f
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Tue May 12 15:09:46 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue May 12 15:09:46 2009 +0200
fenced: add const to ccs functions
stable3/fence/fenced/config.c: In function â??reread_ccsâ??:
stable3/fence/fenced/config.c:116: warning: passing argument 1 of â??read_ccs_intâ?? discards qualifiers from pointer target type
stable3/fence/fenced/config.c:64: note: expected â??char *â?? but argument is of type â??const char *â??
stable3/fence/fenced/config.c:118: warning: passing argument 1 of â??read_ccs_intâ?? discards qualifiers from pointer target type
stable3/fence/fenced/config.c:64: note: expected â??char *â?? but argument is of type â??const char *â??
stable3/fence/fenced/config.c:120: warning: passing argument 1 of â??read_ccs_intâ?? discards qualifiers from pointer target type
stable3/fence/fenced/config.c:64: note: expected â??char *â?? but argument is of type â??const char *â??
stable3/fence/fenced/config.c: In function â??read_ccsâ??:
stable3/fence/fenced/config.c:133: warning: passing argument 1 of â??read_ccs_intâ?? discards qualifiers from pointer target type
stable3/fence/fenced/config.c:64: note: expected â??char *â?? but argument is of type â??const char *â??
stable3/fence/fenced/config.c: In function â??setup_ccsâ??:
stable3/fence/fenced/config.c:207: warning: passing argument 1 of â??read_ccs_intâ?? discards qualifiers from pointer target type
stable3/fence/fenced/config.c:64: note: expected â??char *â?? but argument is of type â??const char *â??
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
fence/fenced/config.c | 6 +++---
fence/fenced/fd.h | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/fence/fenced/config.c b/fence/fenced/config.c
index 4410bba..b9fc1c7 100644
--- a/fence/fenced/config.c
+++ b/fence/fenced/config.c
@@ -26,7 +26,7 @@ int cfgd_post_fail_delay = DEFAULT_POST_FAIL_DELAY;
int cfgd_override_time = DEFAULT_OVERRIDE_TIME;
char *cfgd_override_path = DEFAULT_OVERRIDE_PATH;
-void read_ccs_name(char *path, char *name)
+void read_ccs_name(const char *path, char *name)
{
char *str;
int error;
@@ -40,7 +40,7 @@ void read_ccs_name(char *path, char *name)
free(str);
}
-void read_ccs_yesno(char *path, int *yes, int *no)
+void read_ccs_yesno(const char *path, int *yes, int *no)
{
char *str;
int error;
@@ -61,7 +61,7 @@ void read_ccs_yesno(char *path, int *yes, int *no)
free(str);
}
-void read_ccs_int(char *path, int *config_val)
+void read_ccs_int(const char *path, int *config_val)
{
char *str;
int val;
diff --git a/fence/fenced/fd.h b/fence/fenced/fd.h
index 0216e8a..22ffe2c 100644
--- a/fence/fenced/fd.h
+++ b/fence/fenced/fd.h
@@ -191,9 +191,9 @@ struct fd {
int setup_ccs(void);
void close_ccs(void);
void reread_ccs(void);
-void read_ccs_name(char *path, char *name);
-void read_ccs_yesno(char *path, int *yes, int *no);
-void read_ccs_int(char *path, int *config_val);
+void read_ccs_name(const char *path, char *name);
+void read_ccs_yesno(const char *path, int *yes, int *no);
+void read_ccs_int(const char *path, int *config_val);
int read_ccs(struct fd *fd);
/* cpg.c */