Changeset 241f1985 in mainline for uspace/srv/sysman/repo.c
- Timestamp:
- 2019-08-31T10:45:17Z (6 years ago)
- Children:
- 102f641
- Parents:
- f92b315
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-23 22:04:34)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-31 10:45:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/repo.c
rf92b315 r241f1985 30 30 #include <adt/hash_table.h> 31 31 #include <adt/list.h> 32 #include <str.h> 32 33 #include <assert.h> 33 34 #include <errno.h> … … 55 56 } 56 57 57 static size_t units_by_handle_ht_key_hash( void *key)58 static size_t units_by_handle_ht_key_hash(const void *key) 58 59 { 59 60 return *(unit_handle_t *)key; … … 67 68 } 68 69 69 static bool units_by_handle_ht_key_equal( void *key, const ht_link_t *item)70 static bool units_by_handle_ht_key_equal(const void *key, const ht_link_t *item) 70 71 { 71 72 return *(unit_handle_t *)key == … … 88 89 } 89 90 90 static size_t units_by_name_ht_key_hash( void *key)91 static size_t units_by_name_ht_key_hash(const void *key) 91 92 { 92 93 return hash_string((const char *)key); … … 100 101 } 101 102 102 static bool units_by_name_ht_key_equal( void *key, const ht_link_t *item)103 static bool units_by_name_ht_key_equal(const void *key, const ht_link_t *item) 103 104 { 104 105 return str_cmp((const char *)key, … … 166 167 return EOK; 167 168 } else { 168 return EEXIST S;169 return EEXIST; 169 170 } 170 171 }
Note:
See TracChangeset
for help on using the changeset viewer.