minor ntfsmount cleanup
parent
3629d931c6
commit
94be253f74
|
@ -1150,16 +1150,16 @@ static char *parse_mount_options(char *org_options, char **device)
|
|||
Eprintf("'ro' option should not have value.\n");
|
||||
goto err_exit;
|
||||
}
|
||||
ctx->ro =TRUE;
|
||||
ctx->ro = TRUE;
|
||||
strcat(ret, "ro,");
|
||||
#ifdef DEBUG
|
||||
} else if (!strcmp(opt, "fake_ro")) {
|
||||
} else if (!strcmp(opt, "fake_rw")) {
|
||||
if (val) {
|
||||
Eprintf("'fake_ro' option should not have "
|
||||
Eprintf("'fake_rw' option should not have "
|
||||
"value.\n");
|
||||
goto err_exit;
|
||||
}
|
||||
ctx->ro =TRUE;
|
||||
ctx->ro = TRUE;
|
||||
#endif
|
||||
} else if (!strcmp(opt, "fsname")) { /* Filesystem name. */
|
||||
/*
|
||||
|
@ -1274,7 +1274,7 @@ static void usage(void)
|
|||
* Return: 1 Success
|
||||
* 0 Error, one or more problems
|
||||
*/
|
||||
static int parse_options (int argc, char *argv[])
|
||||
static int parse_options(int argc, char *argv[])
|
||||
{
|
||||
int err = 0, help = 0;
|
||||
char c = -1;
|
||||
|
@ -1293,7 +1293,7 @@ static int parse_options (int argc, char *argv[])
|
|||
opts.mnt_point = NULL;
|
||||
opts.options = NULL;
|
||||
|
||||
while ((c = getopt_long (argc, argv, sopt, lopt, NULL)) != (char)-1) {
|
||||
while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != (char)-1) {
|
||||
switch (c) {
|
||||
case 1: /* A non-option argument */
|
||||
if (!opts.mnt_point)
|
||||
|
|
Loading…
Reference in New Issue