From 542f4cbdfa6f58dd8a07e35663116a08f54170bd Mon Sep 17 00:00:00 2001 From: wangmenglan Date: Tue, 9 May 2023 22:12:38 +0800 Subject: TSG-14930 TFE支持发送控制报文给SAPP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/tfe_cmsg.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common/src/tfe_cmsg.cpp') diff --git a/common/src/tfe_cmsg.cpp b/common/src/tfe_cmsg.cpp index d16705b..6f9d2b6 100644 --- a/common/src/tfe_cmsg.cpp +++ b/common/src/tfe_cmsg.cpp @@ -25,7 +25,7 @@ struct tfe_cmsg_tlv struct tfe_cmsg { uint8_t flag; - uint8_t ref; + uint8_t ref; pthread_rwlock_t rwlock; uint16_t nr_tlvs; struct tfe_cmsg_tlv* tlvs[TFE_CMSG_TLV_NR_MAX]; @@ -47,8 +47,8 @@ struct tfe_cmsg* tfe_cmsg_init() pthread_rwlock_init(&(cmsg->rwlock), NULL); ATOMIC_ZERO(&cmsg->flag); - ATOMIC_ZERO(&cmsg->ref); - ATOMIC_INC(&cmsg->ref); + ATOMIC_ZERO(&cmsg->ref); + ATOMIC_INC(&cmsg->ref); return cmsg; } @@ -73,7 +73,7 @@ void tfe_cmsg_dup(struct tfe_cmsg *cmsg) { if (cmsg == NULL) return; - ATOMIC_INC(&cmsg->ref); + ATOMIC_INC(&cmsg->ref); } void tfe_cmsg_set_flag(struct tfe_cmsg *cmsg, uint8_t flag) -- cgit v1.2.3