aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/ipc-modem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ipc-modem.c b/tools/ipc-modem.c
index ad92113..935677b 100644
--- a/tools/ipc-modem.c
+++ b/tools/ipc-modem.c
@@ -528,7 +528,7 @@ int main(int argc, char *argv[])
ipc_client_log_callback_register(client_fmt, modem_log_handler_quiet, NULL);
else ipc_client_log_callback_register(client_fmt, modem_log_handler, NULL);
- while(opt_i < argc) {
+ while(optind < argc) {
if(strncmp(argv[optind], "power-on", 8) == 0) {
if (ipc_client_power_on(client_fmt) < 0)
printf("[E] Something went wrong while powering modem on\n");