[sr-dev] git:master:a88cf96b: cdp: global variables declared extern in header file

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 3 10:35:56 CET 2020


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-03-03T10:34:02+01:00

cdp: global variables declared extern in header file

---

Modified: src/modules/cdp/diameter_peer.h

---

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

---

diff --git a/src/modules/cdp/diameter_peer.h b/src/modules/cdp/diameter_peer.h
index 378a281dd5..f092f74ccc 100644
--- a/src/modules/cdp/diameter_peer.h
+++ b/src/modules/cdp/diameter_peer.h
@@ -65,10 +65,10 @@ typedef struct {
 	pid_list_t *head,*tail;
 } pid_list_head_t;
 
-pid_t *dp_first_pid;		/**< first pid that we started from		*/
+extern pid_t *dp_first_pid;		/**< first pid that we started from		*/
 
-pid_list_head_t *pid_list;	/**< list of local processes			*/
-gen_lock_t *pid_list_lock;	/**< lock for list of local processes	*/
+extern pid_list_head_t *pid_list;	/**< list of local processes			*/
+extern gen_lock_t *pid_list_lock;	/**< lock for list of local processes	*/
 
 int diameter_peer_init_str(str config_str);
 int diameter_peer_init(char *cfg_filename);




More information about the sr-dev mailing list