Sfoglia il codice sorgente

Remove warnings about objdb that casts a const char * to a char *.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2081 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 17 anni fa
parent
commit
ac597689df
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      exec/objdb.c

+ 2 - 2
exec/objdb.c

@@ -151,7 +151,7 @@ static int objdb_init (void)
 		goto error_destroy;
 	}
 	instance->find_child_list = &instance->child_head;
-	instance->object_name = "parent";
+	instance->object_name = (char *)"parent";
 	instance->object_name_len = strlen ("parent");
 	instance->object_handle = handle;
 	instance->parent_handle = OBJECT_PARENT_HANDLE;
@@ -748,7 +748,7 @@ static int object_find_create (
 
 	object_find_instance->find_child_list = &object_instance->child_head;
 	object_find_instance->child_head = &object_instance->child_head;
-	object_find_instance->object_name = object_name;
+	object_find_instance->object_name = (char *)object_name;
 	object_find_instance->object_len = object_len;
 
 	hdb_handle_put (&object_instance_database, object_handle);