Просмотр исходного кода

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 лет назад
Родитель
Сommit
7e6affcbf3
2 измененных файлов с 2 добавлено и 2 удалено
  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 (
 	votequorum_handle_t handle,
-	char *name,
+	const char *name,
 	unsigned int votes);
 
 /*

+ 1 - 1
lib/votequorum.c

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