Explorar o código

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 %!s(int64=17) %!d(string=hai) anos
pai
achega
100332447b
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  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;