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

votequorum.c: add "const" to avoid 2 more warnings

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1941 fd59a12c-fef9-0310-b244-a6a79926bd2f
Jim Meyering 17 лет назад
Родитель
Сommit
709f7cce2e
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      services/votequorum.c

+ 4 - 3
services/votequorum.c

@@ -1624,9 +1624,10 @@ static void reread_config(hdb_handle_t object_handle)
 static void quorum_key_change_notify(object_change_type_t change_type,
 				     hdb_handle_t parent_object_handle,
 				     hdb_handle_t object_handle,
-				     void *object_name_pt, int object_name_len,
-				     void *key_name_pt, int key_len,
-				     void *key_value_pt, int key_value_len,
+				     const void *object_name_pt,
+				     int object_name_len,
+				     const void *key_name_pt, int key_len,
+				     const void *key_value_pt, int key_value_len,
 				     void *priv_data_pt)
 {
 	if (memcmp(object_name_pt, "quorum", object_name_len) == 0)