summaryrefslogtreecommitdiff
path: root/apps/app_dumpchan.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-04-21 14:49:21 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-04-21 14:49:21 +0000
commit0dbf814a79fc82b99d14cade9ead82540c8fe6dc (patch)
tree0610219ce014fe270f72ed2014a957fd3a329a73 /apps/app_dumpchan.c
parente61e34e8a1832e4dcf64957d6cf6723f54c735fd (diff)
- use symbolic constants and macros to play with the debug flag
on the frame counters. Document it in the header file. - provide a single exit point for a function; - mark XXX some unclear parts of the code. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_dumpchan.c')
-rw-r--r--apps/app_dumpchan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_dumpchan.c b/apps/app_dumpchan.c
index aa8854620..5124cc2c4 100644
--- a/apps/app_dumpchan.c
+++ b/apps/app_dumpchan.c
@@ -114,8 +114,8 @@ static int ast_serialize_showchan(struct ast_channel *c, char *buf, size_t size)
c->nativeformats,
c->writeformat,
c->readformat,
- c->fds[0], c->fin & 0x7fffffff, (c->fin & 0x80000000) ? " (DEBUGGED)" : "",
- c->fout & 0x7fffffff, (c->fout & 0x80000000) ? " (DEBUGGED)" : "", (long)c->whentohangup,
+ c->fds[0], c->fin & ~DEBUGCHAN_FLAG, (c->fin & DEBUGCHAN_FLAG) ? " (DEBUGGED)" : "",
+ c->fout & ~DEBUGCHAN_FLAG, (c->fout & DEBUGCHAN_FLAG) ? " (DEBUGGED)" : "", (long)c->whentohangup,
hour,
min,
sec,