[asterisk-bugs] [Asterisk 0016844]: Fix portability bit fields and make "mfcr2_immediate_accept" work again
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Feb 16 12:54:34 CST 2010
The following issue has been SUBMITTED.
======================================================================
https://issues.asterisk.org/view.php?id=16844
======================================================================
Reported By: korihor
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 16844
Category: Channels/chan_dahdi
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: SVN
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.2
SVN Revision (number only!): 246942
Request Review:
======================================================================
Date Submitted: 2010-02-16 12:54 CST
Last Modified: 2010-02-16 12:54 CST
======================================================================
Summary: Fix portability bit fields and make
"mfcr2_immediate_accept" work again
Description:
First, because in C the "bit fields" are "implementation-defined" when a
member is declared as type "int". It is recommended to explicitly specify
"signed" or "unsigned" on this members for portability.
Second, the variables "get_ani_first", "skip_category_request",
"immediate_accept" contain over his life three possible values: -1, 0, 1.
They therefore have to be members type "signed int" 2-bit (: 2). The rest
can only be 0 or 1, so they are "unsigned int" 1-bit (: 1).
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-02-16 12:54 korihor New Issue
2010-02-16 12:54 korihor Asterisk Version => SVN
2010-02-16 12:54 korihor Regression => No
2010-02-16 12:54 korihor SVN Branch (only for SVN checkouts, not tarball
releases) => 1.6.2
2010-02-16 12:54 korihor SVN Revision (number only!) => 246942
======================================================================
More information about the asterisk-bugs
mailing list