Changeset 904b1bc in mainline for uspace/app/mkmfs/mkmfs.c


Ignore:
Timestamp:
2018-05-22T10:36:58Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a4eb3ba2
Parents:
4f8772d4
git-author:
Jiri Svoboda <jiri@…> (2018-05-21 17:36:30)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-22 10:36:58)
Message:

Fix remaining ccheck issues.

File:
1 edited

Legend:

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

    r4f8772d4 r904b1bc  
    9898
    9999static struct option const long_options[] = {
    100                 { "help", no_argument, 0, 'h' },
    101                 { "long-names", no_argument, 0, 'l' },
    102                 { "block-size", required_argument, 0, 'b' },
    103                 { "inodes", required_argument, 0, 'i' },
    104                 { NULL, no_argument, 0, '1' },
    105                 { NULL, no_argument, 0, '2' },
    106                 { 0, 0, 0, 0 }
     100        { "help", no_argument, 0, 'h' },
     101        { "long-names", no_argument, 0, 'l' },
     102        { "block-size", required_argument, 0, 'b' },
     103        { "inodes", required_argument, 0, 'i' },
     104        { NULL, no_argument, 0, '1' },
     105        { NULL, no_argument, 0, '2' },
     106        { 0, 0, 0, 0 }
    107107};
    108108
     
    495495
    496496                if (sb->fs_version == 3) {
    497                         if(INT32_MAX / sb->block_size < zones)
     497                        if (INT32_MAX / sb->block_size < zones)
    498498                                sb->max_file_size = INT32_MAX;
    499499                        sb->ino_per_block = V3_INODES_PER_BLOCK(sb->block_size);
     
    730730{
    731731        if (level == HELP_SHORT) {
    732                 printf(NAME": tool to create new Minix file systems\n");
     732                printf(NAME ": tool to create new Minix file systems\n");
    733733        } else {
    734734                printf("Usage: [options] device\n"
     
    737737                    "-b ##      Specify the block size in bytes (V3 only),\n"
    738738                    "           valid block size values are 1024, 2048 and"
    739                                 " 4096 bytes per block\n"
     739                    /* ...   */ " 4096 bytes per block\n"
    740740                    "-i ##      Specify the number of inodes"
    741                                 " for the filesystem\n"
     741                    /* ...   */ " for the filesystem\n"
    742742                    "-l         Use 30-char long filenames (V1/V2 only)\n");
    743743        }
Note: See TracChangeset for help on using the changeset viewer.