@@ -198,7 +198,7 @@ static inline void table_reseed(struct hashtable *restrict table)
198198
199199struct hashtable * table_set (
200200 struct hashtable * restrict table , const struct hashkey key ,
201- void * * restrict element )
201+ void * * element )
202202{
203203 assert (table != NULL && element != NULL );
204204 const uint_least32_t hash = GET_HASH (key , table -> seed );
@@ -264,7 +264,7 @@ struct hashtable *table_set(
264264
265265bool table_find (
266266 const struct hashtable * restrict table , const struct hashkey key ,
267- void * * element )
267+ void * * restrict element )
268268{
269269 if (table == NULL ) {
270270 return false;
@@ -287,7 +287,7 @@ bool table_find(
287287
288288struct hashtable * table_del (
289289 struct hashtable * restrict table , const struct hashkey key ,
290- void * * restrict element )
290+ void * * element )
291291{
292292 if (table == NULL ) {
293293 return NULL ;
@@ -382,7 +382,8 @@ table_reserve(struct hashtable *restrict table, const size_t new_size)
382382}
383383
384384struct hashtable * table_filter (
385- struct hashtable * restrict table , const table_iterate_cb f , void * data )
385+ struct hashtable * restrict table , const table_iterate_cb f ,
386+ void * restrict data )
386387{
387388 if (table == NULL ) {
388389 return NULL ;
@@ -416,7 +417,7 @@ struct hashtable *table_filter(
416417
417418void table_iterate (
418419 const struct hashtable * restrict table , const table_iterate_cb f ,
419- void * data )
420+ void * restrict data )
420421{
421422 if (table == NULL ) {
422423 return ;
0 commit comments