Module: kamailio
Branch: master
Commit: 2137aef791bfbc835ac5f630c91c49fc509e6a6c
URL:
https://github.com/kamailio/kamailio/commit/2137aef791bfbc835ac5f630c91c49f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-20T17:57:07+01:00
presence_reginfo: clang format wrapper to exports struct
- removed trailing spaces
---
Modified: src/modules/presence_reginfo/add_events.c
Modified: src/modules/presence_reginfo/add_events.h
Modified: src/modules/presence_reginfo/presence_reginfo.c
Modified: src/modules/presence_reginfo/presence_reginfo.h
---
Diff:
https://github.com/kamailio/kamailio/commit/2137aef791bfbc835ac5f630c91c49f…
Patch:
https://github.com/kamailio/kamailio/commit/2137aef791bfbc835ac5f630c91c49f…
---
diff --git a/src/modules/presence_reginfo/add_events.c
b/src/modules/presence_reginfo/add_events.c
index 5616faa83a..3cb9f7a145 100644
--- a/src/modules/presence_reginfo/add_events.c
+++ b/src/modules/presence_reginfo/add_events.c
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -31,7 +31,7 @@
int reginfo_add_events(void)
{
pres_ev_t event;
-
+
/* constructing message-summary event */
memset(&event, 0, sizeof(pres_ev_t));
event.name.s = "reg";
@@ -47,6 +47,6 @@ int reginfo_add_events(void)
if (pres_add_event(&event) < 0) {
LM_ERR("failed to add event \"reginfo\"\n");
return -1;
- }
+ }
return 0;
}
diff --git a/src/modules/presence_reginfo/add_events.h
b/src/modules/presence_reginfo/add_events.h
index 49d9322740..194dca6f0c 100644
--- a/src/modules/presence_reginfo/add_events.h
+++ b/src/modules/presence_reginfo/add_events.h
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * 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/presence_reginfo/presence_reginfo.c
b/src/modules/presence_reginfo/presence_reginfo.c
index bf8588dd37..eadbfdad24 100644
--- a/src/modules/presence_reginfo/presence_reginfo.c
+++ b/src/modules/presence_reginfo/presence_reginfo.c
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -47,6 +47,7 @@ static int mod_init(void);
add_event_t pres_add_event;
/* module exports */
+/* clang-format off */
struct module_exports exports= {
"presence_reginfo", /* module name */
DEFAULT_DLFLAGS, /* dlopen flags */
@@ -59,7 +60,8 @@ struct module_exports exports= {
0, /* per-child init function */
0 /* module destroy function */
};
-
+/* clang-format on */
+
/*
* init module function
*/
@@ -85,8 +87,8 @@ static int mod_init(void)
}
if(reginfo_add_events() < 0) {
LM_ERR("failed to add reginfo-info events\n");
- return -1;
- }
-
+ return -1;
+ }
+
return 0;
}
diff --git a/src/modules/presence_reginfo/presence_reginfo.h
b/src/modules/presence_reginfo/presence_reginfo.h
index a721737841..6d5371535b 100644
--- a/src/modules/presence_reginfo/presence_reginfo.h
+++ b/src/modules/presence_reginfo/presence_reginfo.h
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/