]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Convert du.c to use the functions in lib/hash.c, not private,
authorJim Meyering <jim@meyering.net>
Sat, 6 Oct 2001 21:29:19 +0000 (21:29 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 6 Oct 2001 21:29:19 +0000 (21:29 +0000)
commitccdb1b02159b155b71e561a0bc5b14656e1a7d4d
tree5a9e68790bfbfa11380556ac875b5457428eec24
parentbf0b70f10d3b46669ee4713c10f91eacc5d0a3f9
Convert du.c to use the functions in lib/hash.c, not private,
slightly-modified copies of those that used to be in cp-hash.c.

(struct entry) [coll_link]: Remove member.
(struct htab): Remove.
(hash_reset, hash_init, hash_insert2, hash_insert): Remove functions.

Include hash.h and same.h.
(htab): Change type of global to `struct hash';
(entry_hash, entry_compare, hash_ins): New functions.
(count_entry): Use hash_ins instead of hash_insert.
src/du.c