server: Cast-qual warnings fix.
This commit is contained in:
parent
0689e9ea05
commit
76c556ad68
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue