summaryrefslogtreecommitdiff
path: root/common/src/tfe_cmsg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/tfe_cmsg.cpp')
-rw-r--r--common/src/tfe_cmsg.cpp8
1 files changed, 4 insertions, 4 deletions
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)