]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
unbreak the macro used for incrementing the frame counters.
authorLuigi Rizzo <rizzo@icir.org>
Mon, 18 Dec 2006 17:23:29 +0000 (17:23 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Mon, 18 Dec 2006 17:23:29 +0000 (17:23 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@48566 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/channel.h

index 488b64c3c88cee6bcc7bf3550567c517c3cd1a29..431f5714438e010f0bf180a0d8106542469010e2 100644 (file)
@@ -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,