Răsfoiți Sursa

Fix some compile warnings.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1672 fd59a12c-fef9-0310-b244-a6a79926bd2f
Christine Caulfield 17 ani în urmă
părinte
comite
d2795808da
2 a modificat fișierele cu 2 adăugiri și 4 ștergeri
  1. 2 0
      lib/sa-confdb.h
  2. 0 4
      services/confdb.c

+ 2 - 0
lib/sa-confdb.h

@@ -42,6 +42,8 @@ extern int confdb_sa_key_get(unsigned int parent_object_handle, void *key_name,
 extern int confdb_sa_key_replace(unsigned int parent_object_handle, void *key_name, int key_name_len, void *old_value, int old_value_len, void *new_value, int new_value_len);
 extern int confdb_sa_object_find(unsigned int parent_object_handle, unsigned int *find_handle, unsigned int *object_handle, void *object_name, int *object_name_len, int copy_name);
 extern int confdb_sa_key_iter(unsigned int parent_object_handle, unsigned int start_pos, void *key_name, int *key_name_len, void *value, int *value_len);
+extern int confdb_sa_key_increment(unsigned int parent_object_handle, void *key_name, int key_name_len, unsigned int *value);
+extern int confdb_sa_key_decrement(unsigned int parent_object_handle, void *key_name, int key_name_len, unsigned int *value);
 extern int confdb_sa_find_destroy(unsigned int find_handle);
 extern int confdb_sa_write(char *error_text);
 extern int confdb_sa_reload(int flush, char *error_text);

+ 0 - 4
services/confdb.c

@@ -384,8 +384,6 @@ static void message_handler_req_lib_confdb_key_increment (void *conn, void *mess
 {
 	struct req_lib_confdb_key_get *req_lib_confdb_key_get = (struct req_lib_confdb_key_get *)message;
 	struct res_lib_confdb_key_incdec res_lib_confdb_key_incdec;
-	int value_len;
-	void *value;
 	int ret = SA_AIS_OK;
 
 	if (api->object_key_increment(req_lib_confdb_key_get->parent_object_handle,
@@ -404,8 +402,6 @@ static void message_handler_req_lib_confdb_key_decrement (void *conn, void *mess
 {
 	struct req_lib_confdb_key_get *req_lib_confdb_key_get = (struct req_lib_confdb_key_get *)message;
 	struct res_lib_confdb_key_incdec res_lib_confdb_key_incdec;
-	int value_len;
-	void *value;
 	int ret = SA_AIS_OK;
 
 	if (api->object_key_decrement(req_lib_confdb_key_get->parent_object_handle,