memfs: memfs-main.c

This commit is contained in:
Bill Zissimopoulos 2016-04-08 17:30:20 -07:00
parent 5b0522df46
commit 59347cd00d

View File

@ -52,14 +52,14 @@ static void fail(const char *format, ...)
static void usage(void)
{
static char usage[] = ""
"usage: " PROGNAME " OPTIONS MountPoint\n"
"usage: %s OPTIONS MountPoint\n"
"\n"
"options:\n"
" -t FileInfoTimeout\n"
" -n MaxFileNodes\n"
" -s MaxFileSize\n";
warn("%s", usage);
warn(usage, PROGNAME);
exit(2);
}
@ -118,21 +118,6 @@ int wmain(int argc, wchar_t **argv)
if (0 == MountPoint || 0 != argp[0])
usage();
for (int i = 1; argc > i; i++)
{
if (L'-' != argv[i][0])
break;
switch (argv[i][1])
{
case L'n':
break;
case L's':
break;
case L't':
break;
}
}
MainEvent = CreateEvent(0, TRUE, FALSE, 0);
if (0 == MainEvent)
fail("error: cannot create MainEvent");