From 76c556ad68e8ba2902f403afbc41f1449ae2dc08 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Sat, 16 Dec 2006 17:41:30 +0000 Subject: [PATCH] server: Cast-qual warnings fix. --- server/object.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/object.c b/server/object.c index 6efe239ab16..63465f2f7e1 100644 --- a/server/object.c +++ b/server/object.c @@ -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) {