Add braces to squelch a warning from GCC 2.8.1 on Solaris 7/x86.

svn path=/trunk/; revision=2076
This commit is contained in:
Guy Harris 2000-06-17 03:05:02 +00:00
parent 5afb4f7225
commit 6bf61848b7
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
* Routines for X11 dissection
* Copyright 2000, Christophe Tronche <ch.tronche@computer.org>
*
* $Id: packet-x11.c,v 1.8 2000/06/15 04:09:22 guy Exp $
* $Id: packet-x11.c,v 1.9 2000/06/17 03:05:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@ -2778,7 +2778,7 @@ guess_byte_ordering(tvbuff_t *tvb)
be = x_endian_match(tvb, tvb_get_ntohs);
/* remember that "decision" really means "little_endian". */
if (le == be)
if (le == be) {
/* We have no reason to believe it's little- rather than
big-endian, so we guess the shortest length is the
right one.
@ -2792,7 +2792,7 @@ guess_byte_ordering(tvbuff_t *tvb)
decision = TRUE;
else
decision = tvb_get_letohs(tvb, 2) <= tvb_get_ntohs(tvb, 2);
else
} else
decision = le >= be;
decisionToCache = (le < 0 && be > 0) || (le > 0 && be < 0);