[sr-dev] git:5.3:87e2fcb0: pua_reginfo: extern declaration of global vars in header file

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 9 09:22:02 CET 2020


Module: kamailio
Branch: 5.3
Commit: 87e2fcb0289e148f53719fca6f029e03c62a2c72
URL: https://github.com/kamailio/kamailio/commit/87e2fcb0289e148f53719fca6f029e03c62a2c72

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-03-09T09:20:19+01:00

pua_reginfo: extern declaration of global vars in header file

(cherry picked from commit 7afe5b9837d38cd77f75c3028c9134673c95404e)

---

Modified: src/modules/pua_reginfo/pua_reginfo.h

---

Diff:  https://github.com/kamailio/kamailio/commit/87e2fcb0289e148f53719fca6f029e03c62a2c72.diff
Patch: https://github.com/kamailio/kamailio/commit/87e2fcb0289e148f53719fca6f029e03c62a2c72.patch

---

diff --git a/src/modules/pua_reginfo/pua_reginfo.h b/src/modules/pua_reginfo/pua_reginfo.h
index a15b7e47a8..133191541b 100644
--- a/src/modules/pua_reginfo/pua_reginfo.h
+++ b/src/modules/pua_reginfo/pua_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
  */
 
@@ -27,9 +27,9 @@
 #include "../pua/pua_bind.h"
 #include "../usrloc/usrloc.h"
 
-str default_domain;
-str outbound_proxy;
-str server_address;
+extern str default_domain;
+extern str outbound_proxy;
+extern str server_address;
 
 extern usrloc_api_t ul; /*!< Structure containing pointers to usrloc functions*/
 extern pua_api_t pua; /*!< Structure containing pointers to PUA functions*/




More information about the sr-dev mailing list