Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/device/hw_res.c

    rc19a5a59 rd51838f  
    3636#include <errno.h>
    3737#include <async.h>
    38 #include <stdlib.h>
     38#include <malloc.h>
    3939
    4040int hw_res_get_resource_list(async_sess_t *sess,
     
    140140 * @param channel DMA channel.
    141141 *
    142  * @param[out] rem Number of bytes remaining in the buffer if positive.
    143  *
    144  * @return Error code.
     142 * @return Number of bytes remaining in the buffer if positive.
     143 * @return Error code if negative.
    145144 *
    146145 */
    147 int hw_res_dma_channel_remain(async_sess_t *sess, unsigned channel, size_t *rem)
     146int hw_res_dma_channel_remain(async_sess_t *sess, unsigned channel)
    148147{
    149148        async_exch_t *exch = async_exchange_begin(sess);
     
    156155       
    157156        if (ret == EOK)
    158                 *rem = remain;
     157                return remain;
    159158       
    160159        return ret;
Note: See TracChangeset for help on using the changeset viewer.