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


Ignore:
Timestamp:
2015-11-02T20:54:19Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d8513177
Parents:
3feeab2 (diff), 5265eea4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    r3feeab2 rff381a7  
    267267                if (dev->id == id) {
    268268                        log_debug("Device with id %zu is already present", id);
    269                         return EEXISTS;
     269                        return EEXIST;
    270270                }
    271271        }
     
    274274        if (dev) {
    275275                log_debug("Device with name %s is already present", name);
    276                 return EEXISTS;
     276                return EEXIST;
    277277        }
    278278
     
    341341                log_debug("Source by that name already exists");
    342342                fibril_mutex_unlock(&hound->list_guard);
    343                 return EEXISTS;
     343                return EEXIST;
    344344        }
    345345        list_append(&source->link, &hound->sources);
     
    365365                log_debug("Sink by that name already exists");
    366366                fibril_mutex_unlock(&hound->list_guard);
    367                 return EEXISTS;
     367                return EEXIST;
    368368        }
    369369        list_append(&sink->link, &hound->sinks);
     
    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.