Fix kmod_list_remove_n_latest()
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 27 Dec 2011 04:46:12 +0000 (02:46 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 27 Dec 2011 04:48:36 +0000 (02:48 -0200)
commiteb4ae531f7693c52fc42a612b99127e591575eed
treed87575b5a62d58897e692042f965284b2b21db20
parentb94a737935d8dcb515194705a1ac1f82ebc82889
Fix kmod_list_remove_n_latest()

It only worked because n was always 1. kmod_list_remove returns a
pointer to the next element, relative to the removed one. Therefore we
need to always get a pointer to the last.
libkmod/libkmod-list.c