ソースを参照

cdp: global variables declared extern in header file

Daniel-Constantin Mierla 5 年 前
コミット
a88cf96b8b
1 ファイル変更3 行追加3 行削除
  1. 3 3
      src/modules/cdp/diameter_peer.h

+ 3 - 3
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);