Module: kamailio
Branch: 5.5
Commit: ba6b3e8d8a9cc898e54acf750f871b812911d972
URL:
https://github.com/kamailio/kamailio/commit/ba6b3e8d8a9cc898e54acf750f871b8…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-14T13:01:01+01:00
sms: fixed misleading-indentation warning GH #3012
(cherry picked from commit adb2d539e0db7feb1d6758dcc040c22a5915f104)
---
Modified: src/modules/sms/sms_funcs.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ba6b3e8d8a9cc898e54acf750f871b8…
Patch:
https://github.com/kamailio/kamailio/commit/ba6b3e8d8a9cc898e54acf750f871b8…
---
diff --git a/src/modules/sms/sms_funcs.c b/src/modules/sms/sms_funcs.c
index 32efec520c..36b85a964e 100644
--- a/src/modules/sms/sms_funcs.c
+++ b/src/modules/sms/sms_funcs.c
@@ -883,21 +883,22 @@ void modem_process(struct modem *mdm)
/* if any, let's get them */
if (used_mem)
LM_DBG("%d new SMS on modem\n",used_mem);
- for(i=1,k=1;k<=used_mem && i<=max_mem;i++) {
- if (getsms(&sms,mdm,i)!=-1) {
- k++;
- LM_DBG("SMS Get from location %d\n",i);
- /*for test ;-) -> to be remove*/
- LM_DBG("SMS RECEIVED:\n\rFrom: %s %s\n\r%.*s %.*s"
- "\n\r\"%.*s\"\n\r",sms.sender,sms.name,
- DATE_LEN,sms.date,TIME_LEN,sms.time,
- sms.userdatalength,sms.ascii);
- if (!sms.is_statusreport)
- _send_sms_as_sip(&sms, mdm);
- else
- check_sms_report(&sms);
- }
+
+ for(i=1,k=1;k<=used_mem && i<=max_mem;i++) {
+ if (getsms(&sms,mdm,i)!=-1) {
+ k++;
+ LM_DBG("SMS Get from location %d\n",i);
+ /*for test ;-) -> to be remove*/
+ LM_DBG("SMS RECEIVED:\n\rFrom: %s %s\n\r%.*s %.*s"
+ "\n\r\"%.*s\"\n\r",sms.sender,sms.name,
+ DATE_LEN,sms.date,TIME_LEN,sms.time,
+ sms.userdatalength,sms.ascii);
+ if (!sms.is_statusreport)
+ _send_sms_as_sip(&sms, mdm);
+ else
+ check_sms_report(&sms);
}
+ }
/* if reports are used, checks for expired records in report queue */
if (sms_report_type!=NO_REPORT)