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 - fenced: add const to ccs functions
Date: Tue, 12 May 2009 17:34:00 -0000	[thread overview]
Message-ID: <20090512173403.536B4120277@lists.fedorahosted.org> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3592 bytes --]

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 */


                 reply	other threads:[~2009-05-12 17:34 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=20090512173403.536B4120277@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: 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).