Changes in uspace/srv/fs/exfat/exfat_idx.c [5e801dc:b1834a01] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_idx.c
r5e801dc rb1834a01 117 117 } pos_key_t; 118 118 119 static inline size_t pos_key_hash( constvoid *key)120 { 121 const pos_key_t *pos =key;119 static inline size_t pos_key_hash(void *key) 120 { 121 pos_key_t *pos = (pos_key_t *)key; 122 122 123 123 size_t hash = 0; … … 139 139 } 140 140 141 static bool pos_key_equal( constvoid *key, const ht_link_t *item)142 { 143 const pos_key_t *pos =key;141 static bool pos_key_equal(void *key, const ht_link_t *item) 142 { 143 pos_key_t *pos = (pos_key_t *)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( constvoid *key_arg)171 { 172 const idx_key_t *key =key_arg;170 static size_t idx_key_hash(void *key_arg) 171 { 172 idx_key_t *key = (idx_key_t *)key_arg; 173 173 return hash_combine(key->service_id, key->index); 174 174 } … … 180 180 } 181 181 182 static bool idx_key_equal( constvoid *key_arg, const ht_link_t *item)182 static bool idx_key_equal(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 const idx_key_t *key =key_arg;185 idx_key_t *key = (idx_key_t *)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.