Changeset ff381a7 in mainline for uspace/srv/audio/hound/hound.c
- Timestamp:
- 2015-11-02T20:54:19Z (8 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/hound.c
r3feeab2 rff381a7 267 267 if (dev->id == id) { 268 268 log_debug("Device with id %zu is already present", id); 269 return EEXIST S;269 return EEXIST; 270 270 } 271 271 } … … 274 274 if (dev) { 275 275 log_debug("Device with name %s is already present", name); 276 return EEXIST S;276 return EEXIST; 277 277 } 278 278 … … 341 341 log_debug("Source by that name already exists"); 342 342 fibril_mutex_unlock(&hound->list_guard); 343 return EEXIST S;343 return EEXIST; 344 344 } 345 345 list_append(&source->link, &hound->sources); … … 365 365 log_debug("Sink by that name already exists"); 366 366 fibril_mutex_unlock(&hound->list_guard); 367 return EEXIST S;367 return EEXIST; 368 368 } 369 369 list_append(&sink->link, &hound->sinks); … … 420 420 421 421 fibril_mutex_lock(&hound->list_guard); 422 const size_tcount = list_count(&hound->sources);422 const unsigned long count = list_count(&hound->sources); 423 423 if (count == 0) { 424 424 *list = NULL; … … 429 429 const char **names = calloc(count, sizeof(char *)); 430 430 int ret = names ? EOK : ENOMEM; 431 for ( size_ti = 0; i < count && ret == EOK; ++i) {431 for (unsigned long i = 0; i < count && ret == EOK; ++i) { 432 432 link_t *slink = list_nth(&hound->sources, i); 433 433 audio_source_t *source = audio_source_list_instance(slink);
Note:
See TracChangeset
for help on using the changeset viewer.