server: Cast-qual warnings fix.

This commit is contained in:
Andrew Talbot 2006-12-16 17:41:30 +00:00 committed by Alexandre Julliard
parent 0689e9ea05
commit 76c556ad68
1 changed files with 3 additions and 2 deletions

View File

@ -290,14 +290,15 @@ void release_object( void *ptr )
struct object *find_object( const struct namespace *namespace, const struct unicode_str *name,
unsigned int attributes )
{
const struct list *list, *p;
const struct list *list;
struct list *p;
if (!name || !name->len) return NULL;
list = &namespace->names[ get_name_hash( namespace, name->str, name->len ) ];
LIST_FOR_EACH( p, list )
{
const struct object_name *ptr = LIST_ENTRY( p, const struct object_name, entry );
const struct object_name *ptr = LIST_ENTRY( p, struct object_name, entry );
if (ptr->len != name->len) continue;
if (attributes & OBJ_CASE_INSENSITIVE)
{