diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-18 17:23:29 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-18 17:23:29 +0000 |
commit | 76d33258d721d369b66aca499a1b986fb675cfda (patch) | |
tree | 9cc08e5d7885167bb4caf7d768d1461633801728 /include | |
parent | 08416b58928a05020a098ed613bc172c67ddc775 (diff) |
unbreak the macro used for incrementing the frame counters.
I don't know when the bug was introduced, but with the typical usage
c->fin = FRAMECOUNT_INC(c->fin)
the frame counters stay to 0.
affects trunk as well (fix coming).
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48566 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/channel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 488b64c3c..431f57144 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -270,7 +270,7 @@ struct ast_channel_spy_list; struct ast_channel_whisper_buffer; #define DEBUGCHAN_FLAG 0x80000000 -#define FRAMECOUNT_INC(x) ( ((x) & DEBUGCHAN_FLAG) | ((x++) & ~DEBUGCHAN_FLAG) ) +#define FRAMECOUNT_INC(x) ( ((x) & DEBUGCHAN_FLAG) | (((x)+1) & ~DEBUGCHAN_FLAG) ) enum ast_channel_adsicpe { AST_ADSI_UNKNOWN, |