Ignore:
Timestamp:
Nov 19, 2020, 11:47:00 PM (4 years ago)
Author:
alain
Message:

Cosmetic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/xhtab.c

    r657 r671  
    22 * xhtab.c - Remote access embedded hash table implementation.
    33 *
    4  * Author     Alain Greiner   (2016,2017,2018,2019)
     4 * Author     Alain Greiner   (2016,2017,2018,2019,2020)
    55 *
    66 * Copyright (c) UPMC Sorbonne Universites
     
    3636///////////////////////////////////////////////////////////////////////////////////////////
    3737// 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.
    3939///////////////////////////////////////////////////////////////////////////////////////////
    4040
     
    147147    else
    148148    {
    149         assert( false , "illegal item type\n" );
     149        assert( __FUNCTION__, false , "illegal item type\n" );
    150150    }
    151151
     
    285285
    286286///////////////////////////////////////
    287 bool_t xhtab_remove( xptr_t   xhtab_xp,
    288                      void   * key,
    289                      xptr_t   xlist_entry_xp )
     287error_t xhtab_remove( xptr_t   xhtab_xp,
     288                      void   * key,
     289                      xptr_t   xlist_entry_xp )
    290290{
    291291    xptr_t             item_xp;
     
    316316        remote_busylock_release( XPTR( xhtab_cxy , &xhtab_ptr->lock ) );
    317317
    318         return false;
     318        return -1;
    319319    }
    320320    else                          // remove item if found
     
    329329        remote_busylock_release( XPTR( xhtab_cxy , &xhtab_ptr->lock ) );
    330330
    331         return true;
     331        return 0;
    332332    }
    333333}  // end xhtab_remove()
Note: See TracChangeset for help on using the changeset viewer.