Make the compiler on Mac OS X happy...

svn path=/trunk/; revision=28934
This commit is contained in:
Michael Tüxen 2009-07-03 10:29:45 +00:00
parent d180d37c8d
commit 9518d53ab4
2 changed files with 13 additions and 13 deletions

View File

@ -5356,7 +5356,7 @@ dissect_SubFrameBlock_block(tvbuff_t *tvb, int offset,
static int
dissect_IRTFrameBlock_block(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow,
guint16 u16BodyLength)
guint16 u16BodyLength _U_)
{
guint16 u16IOCRReference;
guint8 u8IOCRTxPortsRedundantPort;
@ -6834,8 +6834,8 @@ dissect_PNIO_heur(tvbuff_t *tvb,
/* is this a (none DFP) PNIO class 3 data packet? */
/* frame id must be in valid range (cyclic Real-Time, class=3) */
if (u16FrameID >= 0x0100 && u16FrameID <= 0x04ff || /* non redundant */
u16FrameID >= 0x0800 && u16FrameID <= 0x0fff) { /* redundant */
if ((u16FrameID >= 0x0100 && u16FrameID <= 0x04ff) || /* non redundant */
(u16FrameID >= 0x0800 && u16FrameID <= 0x0fff)) { /* redundant */
dissect_PNIO_C_SDU(tvb, 0, pinfo, tree, drep);
return TRUE;
}
@ -6844,10 +6844,10 @@ dissect_PNIO_heur(tvbuff_t *tvb,
/* frame id must be in valid range (cyclic Real-Time, class=2) and
* first byte (CBA version field) has to be != 0x11 */
if ((
u16FrameID >= 0x5000 && u16FrameID <= 0x57ff || /* redundant */
u16FrameID >= 0x6000 && u16FrameID <= 0x67ff || /* non redundant */
u16FrameID >= 0x7000 && u16FrameID <= 0x77ff || /* redundant */
u16FrameID >= 0x8000 && u16FrameID <= 0xbfff) /* non redundant */
(u16FrameID >= 0x5000 && u16FrameID <= 0x57ff) || /* redundant */
(u16FrameID >= 0x6000 && u16FrameID <= 0x67ff) || /* non redundant */
(u16FrameID >= 0x7000 && u16FrameID <= 0x77ff) || /* redundant */
(u16FrameID >= 0x8000 && u16FrameID <= 0xbfff)) /* non redundant */
&& u8CBAVersion != 0x11) {
dissect_PNIO_C_SDU(tvb, 0, pinfo, tree, drep);
return TRUE;

View File

@ -176,12 +176,12 @@ dissect_CSF_SDU_heur(tvbuff_t *tvb,
u16FrameID = GPOINTER_TO_UINT(pinfo->private_data);
/* possible FrameID ranges for DFP */
if (u16FrameID >= 0x0500 && u16FrameID < 0x05ff ||
u16FrameID >= 0x0600 && u16FrameID < 0x07ff ||
u16FrameID >= 0x4800 && u16FrameID < 0x4fff ||
u16FrameID >= 0x5800 && u16FrameID < 0x5fff ||
u16FrameID >= 0x6800 && u16FrameID < 0x6fff ||
u16FrameID >= 0x7800 && u16FrameID < 0x7fff ) {
if ((u16FrameID >= 0x0500 && u16FrameID < 0x05ff) ||
(u16FrameID >= 0x0600 && u16FrameID < 0x07ff) ||
(u16FrameID >= 0x4800 && u16FrameID < 0x4fff) ||
(u16FrameID >= 0x5800 && u16FrameID < 0x5fff) ||
(u16FrameID >= 0x6800 && u16FrameID < 0x6fff) ||
(u16FrameID >= 0x7800 && u16FrameID < 0x7fff)) {
/* can't check this CRC, as the checked data bytes are not available */
u16SFCRC16 = tvb_get_letohs(tvb, offset);
proto_tree_add_uint(tree, hf_pn_rt_sf_crc16, tvb, offset, 2, u16SFCRC16);