Changes in uspace/srv/fs/exfat/exfat_idx.c [b1834a01:5e801dc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_idx.c
rb1834a01 r5e801dc 117 117 } pos_key_t; 118 118 119 static inline size_t pos_key_hash( void *key)120 { 121 pos_key_t *pos = (pos_key_t *)key;119 static inline size_t pos_key_hash(const void *key) 120 { 121 const pos_key_t *pos = key; 122 122 123 123 size_t hash = 0; … … 139 139 } 140 140 141 static bool pos_key_equal( void *key, const ht_link_t *item)142 { 143 pos_key_t *pos = (pos_key_t *)key;141 static bool pos_key_equal(const void *key, const ht_link_t *item) 142 { 143 const pos_key_t *pos = key; 144 144 exfat_idx_t *fidx = hash_table_get_inst(item, exfat_idx_t, uph_link); 145 145 … … 168 168 } idx_key_t; 169 169 170 static size_t idx_key_hash( void *key_arg)171 { 172 idx_key_t *key = (idx_key_t *)key_arg;170 static size_t idx_key_hash(const void *key_arg) 171 { 172 const idx_key_t *key = key_arg; 173 173 return hash_combine(key->service_id, key->index); 174 174 } … … 180 180 } 181 181 182 static bool idx_key_equal( void *key_arg, const ht_link_t *item)182 static bool idx_key_equal(const void *key_arg, const ht_link_t *item) 183 183 { 184 184 exfat_idx_t *fidx = hash_table_get_inst(item, exfat_idx_t, uih_link); 185 idx_key_t *key = (idx_key_t *)key_arg;185 const idx_key_t *key = key_arg; 186 186 187 187 return key->index == fidx->index && key->service_id == fidx->service_id;
Note:
See TracChangeset
for help on using the changeset viewer.