Răsfoiți Sursa

votequorum.c (votequorum_qdisk_register): add "const" to avoid 1 more warnings

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1942 fd59a12c-fef9-0310-b244-a6a79926bd2f
Jim Meyering 17 ani în urmă
părinte
comite
7e6affcbf3
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      include/corosync/votequorum.h
  2. 1 1
      lib/votequorum.c

+ 1 - 1
include/corosync/votequorum.h

@@ -154,7 +154,7 @@ cs_error_t votequorum_setvotes (
  */
  */
 cs_error_t votequorum_qdisk_register (
 cs_error_t votequorum_qdisk_register (
 	votequorum_handle_t handle,
 	votequorum_handle_t handle,
-	char *name,
+	const char *name,
 	unsigned int votes);
 	unsigned int votes);
 
 
 /*
 /*

+ 1 - 1
lib/votequorum.c

@@ -306,7 +306,7 @@ error_exit:
 
 
 cs_error_t votequorum_qdisk_register (
 cs_error_t votequorum_qdisk_register (
 	votequorum_handle_t handle,
 	votequorum_handle_t handle,
-	char *name,
+	const char *name,
 	unsigned int votes)
 	unsigned int votes)
 {
 {
 	cs_error_t error;
 	cs_error_t error;