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: fence: master - fenced: add const to ccs functions
Date: Tue, 23 Jun 2009 07:46:00 -0000	[thread overview]
Message-ID: <20090623072129.37A15120365@lists.fedorahosted.org> (raw)

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

Gitweb:        http://git.fedorahosted.org/git/fence.git?p=fence.git;a=commitdiff;h=88a7fa957dce967c8666988d74f61bb1f148a66d
Commit:        88a7fa957dce967c8666988d74f61bb1f148a66d
Parent:        69c344948eaaddf8bfef6f4057ecef1c727567ff
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 Jun 23 09:18:04 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 52d8a6f..af6a159 100644
--- a/fence/fenced/config.c
+++ b/fence/fenced/config.c
@@ -175,7 +175,7 @@ void close_ccs(void)
 	ccs_disconnect(ccs_handle);
 }
 
-void read_ccs_name(char *path, char *name)
+void read_ccs_name(const char *path, char *name)
 {
 	char *str;
 	int error;
@@ -189,7 +189,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;
@@ -210,7 +210,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 81077ef..1b0a13c 100644
--- a/fence/fenced/fd.h
+++ b/fence/fenced/fd.h
@@ -174,9 +174,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);
 int nodeid_to_name(int nodeid, char *name);
 int name_to_nodeid(char *name, int *nodeid);


                 reply	other threads:[~2009-06-23  7:46 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=20090623072129.37A15120365@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).