xf86: use nt_list_for_each_entry_safe to walk InputHandlers in xf86Wakeup
authorAaron Plattner <aplattner@nvidia.com>
Mon, 11 Feb 2013 22:31:56 +0000 (14:31 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 12 Feb 2013 04:25:32 +0000 (20:25 -0800)
commitda92690107d90061205340d4cdc98b73b59db9b2
tree71bf07d65c670e6eb3427f569db66638fbfcb101
parentd0a14877872b6a33172fb8c8f335792a28b9499b
xf86: use nt_list_for_each_entry_safe to walk InputHandlers in xf86Wakeup

This is necessary when the input handler deletes itself from the
list. Bug found by Maarten Lankhorst, this patch uses the list macros
instead of open-coding the fix.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
hw/xfree86/common/xf86Events.c