Changes in uspace/lib/nic/src/nic_addr_db.c [002fd5f:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/src/nic_addr_db.c
r002fd5f rb7fd2a0 120 120 * @return ENOMEM If there was not enough memory to initialize the storage 121 121 */ 122 int nic_addr_db_init(nic_addr_db_t *db, size_t addr_len)122 errno_t nic_addr_db_init(nic_addr_db_t *db, size_t addr_len) 123 123 { 124 124 assert(db); … … 168 168 * @return EEXIST If this adress already is in the db 169 169 */ 170 int nic_addr_db_insert(nic_addr_db_t *db, const uint8_t *addr)170 errno_t nic_addr_db_insert(nic_addr_db_t *db, const uint8_t *addr) 171 171 { 172 172 assert(db && addr); … … 200 200 * @return ENOENT If there is no address 201 201 */ 202 int nic_addr_db_remove(nic_addr_db_t *db, const uint8_t *addr)202 errno_t nic_addr_db_remove(nic_addr_db_t *db, const uint8_t *addr) 203 203 { 204 204 assert(db && addr); … … 223 223 * @return true if the address is in the db, false otherwise 224 224 */ 225 intnic_addr_db_contains(const nic_addr_db_t *db, const uint8_t *addr)225 bool nic_addr_db_contains(const nic_addr_db_t *db, const uint8_t *addr) 226 226 { 227 227 assert(db && addr);
Note:
See TracChangeset
for help on using the changeset viewer.