Changeset 671 for trunk/kernel/libk/xhtab.c
- Timestamp:
- Nov 19, 2020, 11:47:00 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/xhtab.c
r657 r671 2 2 * xhtab.c - Remote access embedded hash table implementation. 3 3 * 4 * Author Alain Greiner (2016,2017,2018,2019 )4 * Author Alain Greiner (2016,2017,2018,2019,2020) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 36 36 /////////////////////////////////////////////////////////////////////////////////////////// 37 37 // Item type specific functions (four functions for each item type). 38 // Example below is for <vfs_dentry_t> where the identifier is the dentry name.38 // Example below is for <vfs_dentry_t> type where the identifier is the dentry name. 39 39 /////////////////////////////////////////////////////////////////////////////////////////// 40 40 … … 147 147 else 148 148 { 149 assert( false , "illegal item type\n" );149 assert( __FUNCTION__, false , "illegal item type\n" ); 150 150 } 151 151 … … 285 285 286 286 /////////////////////////////////////// 287 bool_t xhtab_remove( xptr_t xhtab_xp,288 void * key,289 xptr_t xlist_entry_xp )287 error_t xhtab_remove( xptr_t xhtab_xp, 288 void * key, 289 xptr_t xlist_entry_xp ) 290 290 { 291 291 xptr_t item_xp; … … 316 316 remote_busylock_release( XPTR( xhtab_cxy , &xhtab_ptr->lock ) ); 317 317 318 return false;318 return -1; 319 319 } 320 320 else // remove item if found … … 329 329 remote_busylock_release( XPTR( xhtab_cxy , &xhtab_ptr->lock ) ); 330 330 331 return true;331 return 0; 332 332 } 333 333 } // end xhtab_remove()
Note: See TracChangeset
for help on using the changeset viewer.