]> git.tuebingen.mpg.de Git - adu.git/commitdiff
Fix sorting of the uid hash table.
authorAndre Noll <maan@systemlinux.org>
Sun, 9 Nov 2008 14:33:16 +0000 (15:33 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 9 Nov 2008 14:33:16 +0000 (15:33 +0100)
We must not blindy sort the whole table because in interactive mode
this table may be modified by later commands and lookup_uid() gets
confused if the entries have been permuted. So introduce
uid_hash_table_sort_idx, an array of indices that describes the current
sorting of the hash table. The order of the entries in the table itsself
never gets changed any more with this patch.

Also, simplify the uid comparators by introducing a wrapper that does
the casts which were previously contained in each comparator.


No differences found