diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-06-17 03:05:02 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-06-17 03:05:02 +0000 |
commit | 6bf61848b7c76479851e8a5a1ea8148cf6ab5dba (patch) | |
tree | 0f2e808cd128d38593945e1f0332803d74381930 /packet-x11.c | |
parent | 5afb4f7225bc895ad3f8cc5eba8aca376fe0d089 (diff) | |
download | wireshark-6bf61848b7c76479851e8a5a1ea8148cf6ab5dba.tar.gz |
Add braces to squelch a warning from GCC 2.8.1 on Solaris 7/x86.
svn path=/trunk/; revision=2076
Diffstat (limited to 'packet-x11.c')
-rw-r--r-- | packet-x11.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-x11.c b/packet-x11.c index 87eb800103..12bea807f1 100644 --- a/packet-x11.c +++ b/packet-x11.c @@ -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); |