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

avoid 6 warnings

* services/votequorum.c (objdb_get_int): Make "key" const.

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

+ 4 - 2
services/votequorum.c

@@ -445,8 +445,10 @@ static inline int objdb_get_string(struct corosync_api_v1 *corosync, unsigned in
 	return -1;
 }
 
-static inline void objdb_get_int(struct corosync_api_v1 *corosync, unsigned int object_service_handle,
-				 char *key, unsigned int *intvalue, unsigned int default_value)
+static inline void objdb_get_int(struct corosync_api_v1 *corosync,
+				 unsigned int object_service_handle,
+				 const char *key, unsigned int *intvalue,
+				 unsigned int default_value)
 {
 	char *value = NULL;