fop(1): updated to use new optind api

This commit is contained in:
Emma Tebibyte 2024-06-04 19:15:55 -06:00
parent 35ddc729fd
commit 05cde15105
Signed by untrusted user: emma
GPG Key ID: 06FA419A1698C270

View File

@ -50,7 +50,7 @@ fn main() {
eprintln!("{}: {}: Not a character.", argv[0], arg);
exit(EX_USAGE);
} else { d = arg_char[0]; }
index_arg = o.ind as usize;
unsafe { index_arg = *o.ind as usize; }
},
Err(_) => {
eprintln!("{}", usage);