public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* fence: master - fenced: add const to ccs functions
@ 2009-06-23  7:46 Fabio M. Di Nitto
  0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-06-23  7:46 UTC (permalink / raw)
  To: cluster-cvs-relay

[-- 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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-23  7:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-23  7:46 fence: master - fenced: add const to ccs functions Fabio M. Di Nitto

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).