Changeset 902dd4b in mainline for uspace/srv/audio/hound/audio_data.c


Ignore:
Timestamp:
2018-04-15T19:21:10Z (7 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
30e9f42, cbc534c
Parents:
2ee0e4a1
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-15 19:20:12)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-15 19:21:10)
Message:

Remove const qualifier from arguments that pass ownership of a buffer.

File:
1 edited

Legend:

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

    r2ee0e4a1 r902dd4b  
    4242/**
    4343 * Create reference counted buffer out of ordinary data buffer.
    44  * @param data audio buffer
     44 * @param data audio buffer. The memory passed will be freed eventually.
    4545 * @param size Size of the @p data buffer.
    46  * @param fomart audio data format.
     46 * @param format audio data format.
    4747 * @return pointer to valid audio data structure, NULL on failure.
    4848 */
    49 audio_data_t *audio_data_create(const void *data, size_t size,
     49audio_data_t *audio_data_create(void *data, size_t size,
    5050    pcm_format_t format)
    5151{
     
    8585        atomic_count_t refc = atomic_predec(&adata->refcount);
    8686        if (refc == 0) {
    87                 free((void *) adata->data);
     87                free(adata->data);
    8888                free(adata);
    8989        }
Note: See TracChangeset for help on using the changeset viewer.