[PATCH] AOSP: erofs-utils: increase val for WITH_ANDROID option
Huang Jianan
huangjianan at oppo.com
Wed Aug 25 13:34:16 AEST 2021
Signed-off-by: Huang Jianan <huangjianan at oppo.com>
---
mkfs/main.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/mkfs/main.c b/mkfs/main.c
index 10fe14d..9369b72 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -45,10 +45,10 @@ static struct option long_options[] = {
#endif
{"max-extent-bytes", required_argument, NULL, 9},
#ifdef WITH_ANDROID
- {"mount-point", required_argument, NULL, 10},
- {"product-out", required_argument, NULL, 11},
- {"fs-config-file", required_argument, NULL, 12},
- {"block-list-file", required_argument, NULL, 13},
+ {"mount-point", required_argument, NULL, 256},
+ {"product-out", required_argument, NULL, 257},
+ {"fs-config-file", required_argument, NULL, 258},
+ {"block-list-file", required_argument, NULL, 259},
#endif
{0, 0, 0, 0},
};
@@ -289,20 +289,20 @@ static int mkfs_parse_options_cfg(int argc, char *argv[])
}
break;
#ifdef WITH_ANDROID
- case 10:
+ case 256:
cfg.mount_point = optarg;
/* all trailing '/' should be deleted */
opt = strlen(cfg.mount_point);
if (opt && optarg[opt - 1] == '/')
optarg[opt - 1] = '\0';
break;
- case 11:
+ case 257:
cfg.target_out_path = optarg;
break;
- case 12:
+ case 258:
cfg.fs_config_file = optarg;
break;
- case 13:
+ case 259:
cfg.block_list_file = optarg;
break;
#endif
--
2.25.1
More information about the Linux-erofs
mailing list