Changeset be12474 in mainline for uspace/srv/audio/hound/hound.c


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

Revisit a few uses of list_count, list_nth w.r.t. type used for object count.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/hound.c

    rdf13836 rbe12474  
    420420
    421421        fibril_mutex_lock(&hound->list_guard);
    422         const size_t count = list_count(&hound->sources);
     422        const unsigned long count = list_count(&hound->sources);
    423423        if (count == 0) {
    424424                *list = NULL;
     
    429429        const char **names = calloc(count, sizeof(char *));
    430430        int ret = names ? EOK : ENOMEM;
    431         for (size_t i = 0; i < count && ret == EOK; ++i) {
     431        for (unsigned long i = 0; i < count && ret == EOK; ++i) {
    432432                link_t *slink = list_nth(&hound->sources, i);
    433433                audio_source_t *source = audio_source_list_instance(slink);
Note: See TracChangeset for help on using the changeset viewer.