Changes in uspace/lib/trackmod/protracker.c [b7fd2a0:43dd72b7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/trackmod/protracker.c
rb7fd2a0 r43dd72b7 79 79 * @return EOK on success, EINVAL if tag is not recognized. 80 80 */ 81 static errno_t smp_tag_decode(uint8_t *tag, size_t *channels)81 static int smp_tag_decode(uint8_t *tag, size_t *channels) 82 82 { 83 83 size_t nentries = sizeof(smp_tags) / sizeof(smptag_desc_t); … … 138 138 * @return EOK on success, ENOMEM if out of memory, EIO on I/O error. 139 139 */ 140 static errno_t protracker_load_patterns(FILE *f, trackmod_module_t *module)140 static int protracker_load_patterns(FILE *f, trackmod_module_t *module) 141 141 { 142 142 size_t cells; 143 143 size_t i, j; 144 errno_t rc;144 int rc; 145 145 size_t nread; 146 146 uint32_t *buf = NULL; … … 191 191 * @return EOk on success, ENOMEM if out of memory, EIO on I/O error. 192 192 */ 193 static errno_t protracker_load_samples(FILE *f, protracker_smp_t *smp,193 static int protracker_load_samples(FILE *f, protracker_smp_t *smp, 194 194 trackmod_module_t *module) 195 195 { 196 errno_t rc;196 int rc; 197 197 size_t i; 198 198 uint8_t ftval; … … 256 256 * or if any error is found in the format of the file. 257 257 */ 258 errno_t trackmod_protracker_load(char *fname, trackmod_module_t **rmodule)258 int trackmod_protracker_load(char *fname, trackmod_module_t **rmodule) 259 259 { 260 260 FILE *f = NULL; … … 269 269 size_t i; 270 270 size_t nread; 271 errno_t rc;271 int rc; 272 272 273 273 f = fopen(fname, "rb"); … … 302 302 memcpy(&mod15, &mod31, sizeof(protracker_15smp_t)); 303 303 304 if (fseek(f, sizeof(protracker_15smp_t), SEEK_SET) < 0) { 304 rc = fseek(f, sizeof(protracker_15smp_t), SEEK_SET); 305 if (rc != 0) { 305 306 printf("Error seeking.\n"); 306 307 rc = EIO;
Note:
See TracChangeset
for help on using the changeset viewer.