optind is a global variable in getopt.h (a macro defined in stdlib.h in nuttx). Here it is used as a variable, not a variable of getopt
Signed-off-by: Huang Qi <huangqi3@xiaomi.com> Change-Id: I3ee4a6bde0df7d158a4b5339ec3ffc027d2f42a3
Signed-off-by: Huang Qi <huangqi3@xiaomi.com> Change-Id: I782d509f6fcc86ade34eda5dbe5845603b819e0e