Changeset 4748038 in mainline


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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/adt/list.h

    r818fffe r4748038  
    173173 *
    174174 */
    175 NO_TRACE static inline int list_empty(list_t *list)
     175NO_TRACE static 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);
  • 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.