Ignore:
File:
1 edited

Legend:

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

    r2456fd0 r1d6dd2a  
    4848#include <inttypes.h>
    4949#include <errno.h>
     50#include <str.h>
    5051#include "fat.h"
    5152#include "fat_dentry.h"
     
    8687static void syntax_print(void);
    8788
    88 static int fat_params_compute(struct fat_cfg *cfg);
    89 static int fat_blocks_write(struct fat_cfg const *cfg, service_id_t service_id);
     89static errno_t fat_params_compute(struct fat_cfg *cfg);
     90static errno_t fat_blocks_write(struct fat_cfg const *cfg, service_id_t service_id);
    9091static void fat_bootsec_create(struct fat_cfg const *cfg, struct fat_bs *bs);
    9192
     
    9495        struct fat_cfg cfg;
    9596
    96         int rc;
     97        errno_t rc;
    9798        char *dev_path;
    9899        service_id_t service_id;
     
    252253}
    253254
    254 static int fat_label_encode(void *dest, const char *src)
     255static errno_t fat_label_encode(void *dest, const char *src)
    255256{
    256257        int i;
     
    284285 * file system params.
    285286 */
    286 static int fat_params_compute(struct fat_cfg *cfg)
     287static errno_t fat_params_compute(struct fat_cfg *cfg)
    287288{
    288289        uint32_t fat_bytes;
     
    356357
    357358/** Create file system with the given parameters. */
    358 static int fat_blocks_write(struct fat_cfg const *cfg, service_id_t service_id)
     359static errno_t fat_blocks_write(struct fat_cfg const *cfg, service_id_t service_id)
    359360{
    360361        aoff64_t addr;
     
    362363        int i;
    363364        uint32_t j;
    364         int rc;
     365        errno_t rc;
    365366        struct fat_bs bs;
    366367        fat_dentry_t *de;
Note: See TracChangeset for help on using the changeset viewer.