on_reg_state2: use 'pjsip_regc_info' instead of 'pjsip_regc'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

`rinfo` defined at `pjsip/src/pjsua-lib/pjsua_acc.c:2374` is unused.

It seems should be `pjsip_regc_info` instead of `pjsip_regc` at `pjsip/include/pjsua-lib/pjsua.h:499`.


--
xiaofeng

--
gpg key fingerprint:
2048R/5E63005B
C84F 671F 70B7 7330 4726  5EC8 02BC CBA2 5E63 005B

--
trans-zh_cn mailing list
trans-zh_cn@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn
From dcc0d7cce3b5a2bfcd92eee371bb95590fb3a358 Mon Sep 17 00:00:00 2001
From: wxf <xiaofeng.wang@xxxxxxxxxxxx>
Date: Sat, 14 Apr 2018 19:32:51 +0800
Subject: [PATCH] use pjsip_regc_info instead of pjsip_regc

---
 pjsip/include/pjsua-lib/pjsua.h | 2 +-
 pjsip/src/pjsua-lib/pjsua_acc.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index 5c2cffb7..db6ebd10 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -496,7 +496,7 @@ typedef struct pjsua_reg_info
 {
     struct pjsip_regc_cbparam	*cbparam;   /**< Parameters returned by
 						 registration callback.	*/
-    pjsip_regc			*regc;	    /**< Client registration 
+    pjsip_regc_info		*regc;	    /**< Client registration
 						 structure. */	
     pj_bool_t			 renew;     /**< Non-zero for registration and 
 						 zero for unregistration. */
diff --git a/pjsip/src/pjsua-lib/pjsua_acc.c b/pjsip/src/pjsua-lib/pjsua_acc.c
index fe180ec4..c0b21c4e 100644
--- a/pjsip/src/pjsua-lib/pjsua_acc.c
+++ b/pjsip/src/pjsua-lib/pjsua_acc.c
@@ -2375,7 +2375,7 @@ static void regc_cb(struct pjsip_regc_cbparam *param)
 
 	pjsip_regc_get_info(param->regc, &rinfo);
 	reg_info.cbparam = param;
-	reg_info.regc = param->regc;
+	reg_info.regc = &rinfo;
 	reg_info.renew = !param->is_unreg;
 	(*pjsua_var.ua_cfg.cb.on_reg_state2)(acc->index, &reg_info);
     }
-- 
2.16.2

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux