Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/mkexfat/mkexfat.c

    rb7fd2a0 rcde999a  
    112112vbr_checksum_update(void const *octets, size_t nbytes, uint32_t *checksum);
    113113
    114 static errno_t
     114static int
    115115ebs_write(service_id_t service_id, exfat_cfg_t *cfg,
    116116    int base, uint32_t *chksum);
    117117
    118 static errno_t
     118static int
    119119bitmap_write(service_id_t service_id, exfat_cfg_t *cfg);
    120120
     
    284284}
    285285
    286 static errno_t
     286static int
    287287bootsec_write(service_id_t service_id, exfat_cfg_t *cfg)
    288288{
     
    290290        uint32_t vbr_checksum;
    291291        uint32_t *chksum_sector;
    292         errno_t rc;
     292        int rc;
    293293        unsigned idx;
    294294
     
    346346 * @return  EOK on success or an error code.
    347347 */
    348 static errno_t
     348static int
    349349ebs_write(service_id_t service_id, exfat_cfg_t *cfg, int base,
    350350    uint32_t *chksum)
     
    352352        uint32_t *ebs = calloc(cfg->sector_size, sizeof(uint8_t));
    353353        int i;
    354         errno_t rc;
     354        int rc;
    355355
    356356        if (!ebs)
     
    399399 * @return EOK on success or an error code.
    400400 */
    401 static errno_t
     401static int
    402402fat_initialize(service_id_t service_id, exfat_cfg_t *cfg)
    403403{
    404404        unsigned long i;
    405405        uint32_t *pfat;
    406         errno_t rc;
     406        int rc;
    407407
    408408        pfat = calloc(cfg->sector_size, 1);
     
    439439 * @return EOK on success or an error code.
    440440 */
    441 static errno_t
     441static int
    442442fat_allocate_clusters(service_id_t service_id, exfat_cfg_t *cfg,
    443443    uint32_t cur_cls, unsigned long ncls)
    444444{
    445         errno_t rc;
     445        int rc;
    446446        unsigned const fat_entries = cfg->sector_size / sizeof(uint32_t);
    447447        aoff64_t fat_sec = cur_cls / fat_entries + FAT_SECTOR_START;
     
    496496 * @return  EOK on success or an error code.
    497497 */
    498 static errno_t
     498static int
    499499bitmap_write(service_id_t service_id, exfat_cfg_t *cfg)
    500500{
    501501        unsigned long i, sec;
    502502        unsigned long allocated_cls;
    503         errno_t rc = EOK;
     503        int rc = EOK;
    504504        bool need_reset = true;
    505505
     
    544544
    545545/** Write the upcase table to disk. */
    546 static errno_t
     546static int
    547547upcase_table_write(service_id_t service_id, exfat_cfg_t *cfg)
    548548{
    549         errno_t rc = EOK;
     549        int rc = EOK;
    550550        aoff64_t start_sec, nsecs, i;
    551551        uint8_t *table_ptr;
     
    595595 * @return   EOK on success or an error code.
    596596 */
    597 static errno_t
     597static int
    598598root_dentries_write(service_id_t service_id, exfat_cfg_t *cfg)
    599599{
     
    601601        aoff64_t rootdir_sec;
    602602        uint16_t wlabel[EXFAT_VOLLABEL_LEN + 1];
    603         errno_t rc;
     603        int rc;
    604604        uint8_t *data;
    605605        unsigned long i;
     
    758758        char *dev_path;
    759759        service_id_t service_id;
    760         errno_t rc;
     760        int rc;
    761761        int c, opt_ind;
    762762        aoff64_t user_fs_size = 0;
Note: See TracChangeset for help on using the changeset viewer.