mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 18:27:04 +03:00
hashmap: remove _IDX_ITERATOR_NIL definition
It is unused and rightly so. Users of the hashmap API should not care about the idx values or any other Iterator internals. _IDX_ITERATOR_FIRST in hashmap.h is an exception. It is needed for ITERATOR_FIRST.
This commit is contained in:
parent
a54941f1b4
commit
49e440cdc9
@ -65,7 +65,6 @@ typedef struct {
|
||||
} Iterator;
|
||||
|
||||
#define _IDX_ITERATOR_FIRST (UINT_MAX - 1)
|
||||
#define _IDX_ITERATOR_NIL (UINT_MAX)
|
||||
#define ITERATOR_FIRST ((Iterator) { .idx = _IDX_ITERATOR_FIRST, .next_key = NULL })
|
||||
|
||||
typedef unsigned long (*hash_func_t)(const void *p, const uint8_t hash_key[HASH_KEY_SIZE]);
|
||||
|
Loading…
Reference in New Issue
Block a user