Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/trackmod/xm.c

    rd5c1051 rb7fd2a0  
    5353 * @return EOK on success, EIO on format error, ENOMEM if out of memory.
    5454 */
    55 static int trackmod_xm_load_order_list(xm_hdr_t *xm_hdr, trackmod_module_t *module)
     55static errno_t trackmod_xm_load_order_list(xm_hdr_t *xm_hdr, trackmod_module_t *module)
    5656{
    57         int rc;
     57        errno_t rc;
    5858        size_t i;
    5959
     
    9494 * @return        EOK on success, EINVAL if there is error in the coded data.
    9595 */
    96 static int trackmod_xm_decode_pattern(uint8_t *data, size_t dsize,
     96static errno_t trackmod_xm_decode_pattern(uint8_t *data, size_t dsize,
    9797    trackmod_pattern_t *pattern)
    9898{
     
    162162 * @return EOK on success, EIO on format error, ENOMEM if out of memory.
    163163 */
    164 static int trackmod_xm_load_patterns(FILE *f, trackmod_module_t *module)
     164static errno_t trackmod_xm_load_patterns(FILE *f, trackmod_module_t *module)
    165165{
    166166        size_t i;
     
    173173        uint8_t *buf = NULL;
    174174        long seek_amount;
    175         int rc;
     175        errno_t rc;
    176176        int ret;
    177177
     
    281281 * @return EOK on success, EIO on format error, ENOMEM if out of memory.
    282282 */
    283 static int trackmod_xm_load_instruments(xm_hdr_t *xm_hdr, FILE *f,
     283static errno_t trackmod_xm_load_instruments(xm_hdr_t *xm_hdr, FILE *f,
    284284    trackmod_module_t *module)
    285285{
     
    297297        void *smp_data;
    298298        long pos;
    299         int rc;
     299        errno_t rc;
    300300        int ret;
    301301
     
    422422 *                or if any error is found in the format of the file.
    423423 */
    424 int trackmod_xm_load(char *fname, trackmod_module_t **rmodule)
     424errno_t trackmod_xm_load(char *fname, trackmod_module_t **rmodule)
    425425{
    426426        FILE *f = NULL;
     
    429429        size_t nread;
    430430        size_t hdr_size;
    431         int rc;
     431        errno_t rc;
    432432
    433433        f = fopen(fname, "rb");
Note: See TracChangeset for help on using the changeset viewer.