Changeset 4748038 in mainline for uspace/lib/c/include/adt/list.h


Ignore:
Timestamp:
2011-09-15T21:30:25Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
47fecbb
Parents:
818fffe
Message:

add argument const qualifiers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/adt/list.h

    r818fffe r4748038  
    173173 *
    174174 */
    175 static inline int list_empty(list_t *list)
     175static inline int list_empty(const list_t *list)
    176176{
    177177        return (list->head.next == &list->head);
     
    186186 *
    187187 */
    188 static inline link_t *list_first(list_t *list)
     188static inline link_t *list_first(const list_t *list)
    189189{
    190190        return ((list->head.next == &list->head) ? NULL : list->head.next);
Note: See TracChangeset for help on using the changeset viewer.