浏览代码

- make nr_branches accessible

Jan Janak 20 年之前
父节点
当前提交
87962c1a10
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 1 1
      dset.c
  2. 3 0
      dset.h

+ 1 - 1
dset.c

@@ -68,7 +68,7 @@ struct branch
 static struct branch branches[MAX_BRANCHES - 1];
 
 /* how many of them we have */
-static unsigned int nr_branches = 0;
+unsigned int nr_branches = 0;
 
 /* branch iterator */
 static int branch_iterator = 0;

+ 3 - 0
dset.h

@@ -32,6 +32,9 @@
 
 struct sip_msg;
 
+extern unsigned int nr_branches;
+
+
 /* 
  * Add a new branch to current transaction 
  */