Module: kamailio
Branch: master
Commit: 72d3230ca5d22724b061f3ac11d16b50cee1340c
URL: 
https://github.com/kamailio/kamailio/commit/72d3230ca5d22724b061f3ac11d16b50cee1340c

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2019-11-15T20:06:14+01:00

presence: remove double extern declaration of _pres_subs_last_sub

- set some global variables static

---

Modified: src/modules/presence/notify.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/72d3230ca5d22724b061f3ac11d16b50cee1340c.diff
Patch: 
https://github.com/kamailio/kamailio/commit/72d3230ca5d22724b061f3ac11d16b50cee1340c.patch

---

diff --git a/src/modules/presence/notify.c b/src/modules/presence/notify.c
index 245c2b95c0..85b74261b9 100644
--- a/src/modules/presence/notify.c
+++ b/src/modules/presence/notify.c
@@ -1623,9 +1623,8 @@ int notify(subs_t *subs, subs_t *watcher_subs, str 
*n_body, int force_null_body,
        return 0;
 }
 
-extern subs_t *_pres_subs_last_sub;
-sip_msg_t *_pres_subs_notify_reply_msg = NULL;
-int _pres_subs_notify_reply_code = 0;
+static sip_msg_t *_pres_subs_notify_reply_msg = NULL;
+static int _pres_subs_notify_reply_code = 0;
 
 int pv_parse_notify_reply_var_name(pv_spec_p sp, str *in)
 {


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to