Remove C args
This commit is contained in:
parent
b02247fbe6
commit
9feeb6782b
20
src/nms.c
20
src/nms.c
@ -20,29 +20,11 @@ extern void rust_main();
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
rust_main();
|
||||
int r, o;
|
||||
int r;
|
||||
unsigned char *input;
|
||||
|
||||
input = NULL;
|
||||
|
||||
while ((o = getopt(argc, argv, "f:ascv")) != -1)
|
||||
{
|
||||
switch (o)
|
||||
{
|
||||
case '?':
|
||||
if (isprint(optopt))
|
||||
{
|
||||
error_log("Unknown option '-%c'.", optopt);
|
||||
}
|
||||
else
|
||||
{
|
||||
error_log("Unknown option character '\\x%x'.", optopt);
|
||||
}
|
||||
error_print();
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
|
||||
r = input_get(&input, "Enter input: ");
|
||||
if (r < 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user