summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrii Pientsov <andrii.pientsov@globallogic.com>2020-06-22 10:49:59 +0300
committerAndrii Pientsov <andrii.pientsov@globallogic.com>2020-06-22 10:49:59 +0300
commit4fc2e232b17be5ea12d152a6c3f72902594f1966 (patch)
treee5e9d77d3c0f0d10a303a4f45399e555c3436ab8
parent435cec04eebd297a6ebd29fffc2c254ee5ef6745 (diff)
downloadsms-utils-4fc2e232b17be5ea12d152a6c3f72902594f1966.tar.gz
sms-utils-4fc2e232b17be5ea12d152a6c3f72902594f1966.tar.bz2
sms-utils-4fc2e232b17be5ea12d152a6c3f72902594f1966.zip
MTX-3449 mPower June20: GP-655 LNA7: SMS -> 3GPP vs. 3GPP2
-rw-r--r--src/sms_delete.c4
-rw-r--r--src/sms_list.c4
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);