Robert Shearman rob@codeweavers.com writes:
--- server/fd.c 24 Apr 2005 17:35:52 -0000 1.37 +++ server/fd.c 24 May 2005 18:37:28 -0000 @@ -898,18 +898,6 @@ static void remove_lock( struct file_loc release_object( lock ); }
-/* remove all locks owned by a given process */ -void remove_process_locks( struct process *process ) -{
- struct list *ptr;
- while ((ptr = list_head( &process->locks )))
- {
struct file_lock *lock = LIST_ENTRY( ptr, struct file_lock, proc_entry );
remove_lock( lock, 1 ); /* this removes it from the list */
- }
-}
Something's not right, that function should be used somewhere.