Module: kamailio
Branch: master
Commit: 911a051b9573d43e01bc627692d99f548f9fc344
URL:
https://github.com/kamailio/kamailio/commit/911a051b9573d43e01bc627692d99f5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-04-13T09:00:11+02:00
speeddial: coherent indentation
---
Modified: src/modules/speeddial/sdlookup.c
Modified: src/modules/speeddial/sdlookup.h
Modified: src/modules/speeddial/speeddial.c
Modified: src/modules/speeddial/speeddial.h
---
Diff:
https://github.com/kamailio/kamailio/commit/911a051b9573d43e01bc627692d99f5…
Patch:
https://github.com/kamailio/kamailio/commit/911a051b9573d43e01bc627692d99f5…
---
diff --git a/src/modules/speeddial/sdlookup.c b/src/modules/speeddial/sdlookup.c
index f561d77..79d52a8 100644
--- a/src/modules/speeddial/sdlookup.c
+++ b/src/modules/speeddial/sdlookup.c
@@ -81,7 +81,7 @@ int sd_lookup(struct sip_msg* _msg, char* _table, char* _owner)
/* init */
nr_keys = 0;
db_cols[0]=&new_uri_column;
-
+
if(_owner)
{
memset(&turi, 0, sizeof(struct sip_uri));
@@ -105,7 +105,7 @@ int sd_lookup(struct sip_msg* _msg, char* _table, char* _owner)
goto err_server;
}
}
-
+
db_keys[nr_keys]=&user_column;
db_vals[nr_keys].type = DB1_STR;
db_vals[nr_keys].nul = 0;
@@ -121,7 +121,7 @@ int sd_lookup(struct sip_msg* _msg, char* _table, char* _owner)
db_vals[nr_keys].val.str_val.s = puri->host.s;
db_vals[nr_keys].val.str_val.len = puri->host.len;
nr_keys++;
-
+
if (dstrip_s.s!=NULL && dstrip_s.len>0
&& dstrip_s.len<puri->host.len
&& strncasecmp(puri->host.s,dstrip_s.s,dstrip_s.len)==0)
@@ -180,21 +180,21 @@ int sd_lookup(struct sip_msg* _msg, char* _table, char* _owner)
user_s.s = useruri_buf+4;
switch(RES_ROWS(db_res)[0].values[0].type)
- {
+ {
case DB1_STRING:
- strcpy(user_s.s,
+ strcpy(user_s.s,
(char*)RES_ROWS(db_res)[0].values[0].val.string_val);
user_s.len = strlen(user_s.s);
break;
case DB1_STR:
- strncpy(user_s.s,
+ strncpy(user_s.s,
(char*)RES_ROWS(db_res)[0].values[0].val.str_val.s,
RES_ROWS(db_res)[0].values[0].val.str_val.len);
user_s.len = RES_ROWS(db_res)[0].values[0].val.str_val.len;
user_s.s[user_s.len] = '\0';
break;
case DB1_BLOB:
- strncpy(user_s.s,
+ strncpy(user_s.s,
(char*)RES_ROWS(db_res)[0].values[0].val.blob_val.s,
RES_ROWS(db_res)[0].values[0].val.blob_val.len);
user_s.len = RES_ROWS(db_res)[0].values[0].val.blob_val.len;
@@ -207,7 +207,7 @@ int sd_lookup(struct sip_msg* _msg, char* _table, char* _owner)
}
goto err_server;
}
-
+
/* check 'sip:' */
if(user_s.len<4 || strncmp(user_s.s, "sip:", 4))
{
diff --git a/src/modules/speeddial/sdlookup.h b/src/modules/speeddial/sdlookup.h
index f1fce5d..ea846b7 100644
--- a/src/modules/speeddial/sdlookup.h
+++ b/src/modules/speeddial/sdlookup.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- *
+ *
*/
diff --git a/src/modules/speeddial/speeddial.c b/src/modules/speeddial/speeddial.c
index 9ad3f98..6c4e2a5 100644
--- a/src/modules/speeddial/speeddial.c
+++ b/src/modules/speeddial/speeddial.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- *
+ *
*/
@@ -89,7 +89,7 @@ static param_export_t params[] = {
/* Module interface */
struct module_exports exports = {
- "speeddial",
+ "speeddial",
DEFAULT_DLFLAGS, /* dlopen flags */
cmds, /* Exported functions */
params, /* Exported parameters */
@@ -128,7 +128,7 @@ static int child_init(int rank)
*/
static int mod_init(void)
{
- /* Find a database module */
+ /* Find a database module */
if (db_bind_mod(&db_url, &db_funcs))
{
LM_ERR("failed to bind database module\n");
diff --git a/src/modules/speeddial/speeddial.h b/src/modules/speeddial/speeddial.h
index 73ac321..49dbd6d 100644
--- a/src/modules/speeddial/speeddial.h
+++ b/src/modules/speeddial/speeddial.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- *
+ *
*/