Jacek Caban (@jacek) commented about server/user.c:
DECL_HANDLER(alloc_user_handle) {
- reply->handle = alloc_user_handle( current->process, req->type );
- reply->handle = alloc_user_handle( (void *)-1 /* never used */, req->type );
}
/* free an arbitrary user handle */ DECL_HANDLER(free_user_handle) {
- struct user_handle *entry;
const user_entry_t *entry;
if ((entry = handle_to_entry( req->handle )) && entry->type == req->type)
free_user_entry( entry );
free_user_entry( (user_entry_t *)entry );
It looks like `handle_to_entry` shouldn't return const.