From 4fc2e232b17be5ea12d152a6c3f72902594f1966 Mon Sep 17 00:00:00 2001 From: Andrii Pientsov Date: Mon, 22 Jun 2020 10:49:59 +0300 Subject: MTX-3449 mPower June20: GP-655 LNA7: SMS -> 3GPP vs. 3GPP2 --- src/sms_delete.c | 4 +++- src/sms_list.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/sms_delete.c b/src/sms_delete.c index 34a0655..48afc06 100644 --- a/src/sms_delete.c +++ b/src/sms_delete.c @@ -141,7 +141,8 @@ int sms_delete(int argc, char **argv) int option_index; int ret; int fd; - int tmp, ret_3gpp, ret_3gpp2 = false; + int ret_3gpp = false; + int ret_3gpp2 = false; while ((i = getopt_long(argc, argv, short_options, long_options, &option_index)) >= 0) { switch (i) { @@ -168,6 +169,7 @@ int sms_delete(int argc, char **argv) // LNA7 with Verizon SIM SMS 3GPP, 3GPP2 WORKAROUND if (is_vzw_lna7()) { + int tmp; tmp = atcmd_plus_qcfg_write(fd, SMS_FORMAT_3GPP); if (tmp == 0) { ret_3gpp = do_delete(fd, argc, argv); diff --git a/src/sms_list.c b/src/sms_list.c index ac55a28..d5ad263 100644 --- a/src/sms_list.c +++ b/src/sms_list.c @@ -456,7 +456,8 @@ int sms_list(int argc, char **argv) int option_index; int ret; int fd; - int tmp, ret_3gpp, ret_3gpp2 = false; + int ret_3gpp = false; + int ret_3gpp2 = false; if (argc < 1) { log_debug("should have received at least one argument"); @@ -500,6 +501,7 @@ int sms_list(int argc, char **argv) // LNA7 with Verizon SIM SMS 3GPP, 3GPP2 WORKAROUND if (is_vzw_lna7()) { + int tmp; tmp = atcmd_plus_qcfg_write(fd, SMS_FORMAT_3GPP); if (tmp == 0) { ret_3gpp = do_list(fd, cmd_type, argc, argv); -- cgit v1.2.3