Deleted Added
full compact
55a56
> #include <sysexits.h>
60c61
< struct mntopt mopts[] = {
---
> static struct mntopt mopts[] = {
65,66c66,67
< int subdir __P((const char *, const char *));
< void usage __P((void));
---
> static int subdir __P((const char *, const char *));
> static __dead void usage __P((void)) __dead2;
105c106
< err(1, "%s", target);
---
> err(EX_OSERR, "%s", target);
108c109
< errx(1, "%s (%s) and %s are not distinct paths",
---
> errx(EX_USAGE, "%s (%s) and %s are not distinct paths",
119a121,122
> if (!vfc)
> errx(EX_OSERR, "union filesystem is not available");
121,122c124,125
< if (mount(vfc ? vfc->vfc_index : MOUNT_UNION, argv[1], mntflags, &args))
< err(1, NULL);
---
> if (mount(vfc->vfc_index, argv[1], mntflags, &args))
> err(EX_OSERR, target);
148c151
< exit(1);
---
> exit(EX_USAGE);