Changeset df13836 in mainline for uspace/lib/c/generic/adt/list.c


Ignore:
Timestamp:
2015-08-30T14:38:17Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be12474
Parents:
616f5dd3
Message:

Use bool for boolean values, unsigned long for counting heap objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/adt/list.c

    r616f5dd3 rdf13836  
    5353 *
    5454 */
    55 int list_member(const link_t *link, const list_t *list)
     55bool list_member(const link_t *link, const list_t *list)
    5656{
    5757        bool found = false;
     
    9898 * @return              Number of items in the list.
    9999 */
    100 unsigned int list_count(const list_t *list)
     100unsigned long list_count(const list_t *list)
    101101{
    102         unsigned int count = 0;
     102        unsigned long count = 0;
    103103       
    104104        link_t *link = list_first(list);
Note: See TracChangeset for help on using the changeset viewer.