aboutsummaryrefslogtreecommitdiffstats
path: root/xdlc.h
diff options
context:
space:
mode:
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>1999-09-27 13:51:54 +0000
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>1999-09-27 13:51:54 +0000
commit5f59cd484485850761a95313c1b996ab1c4877e2 (patch)
tree7486f5193095aea1ca0775a10ac01ac625cb9235 /xdlc.h
parent107e8398d6abc7cd8c28528e14eef7149e1ece91 (diff)
Replace the parens around 'control' in the two macros that I modified. I
accidentally removed them. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@732 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'xdlc.h')
-rw-r--r--xdlc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xdlc.h b/xdlc.h
index 895162d658..bbfe418d01 100644
--- a/xdlc.h
+++ b/xdlc.h
@@ -2,7 +2,7 @@
* Define *DLC frame types, and routine to dissect the control field of
* a *DLC frame.
*
- * $Id: xdlc.h,v 1.6 1999/09/27 08:33:26 guy Exp $
+ * $Id: xdlc.h,v 1.7 1999/09/27 13:51:54 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -64,7 +64,7 @@
* Unnumbered Information frame) and FALSE if it doesn't.
*/
#define XDLC_HAS_PAYLOAD(control) \
- ((control & 0x3) == XDLC_I || (control) == (XDLC_UI|XDLC_U))
+ (((control) & 0x3) == XDLC_I || (control) == (XDLC_UI|XDLC_U))
/*
* This macro takes the control field of an xDLC frame, and a flag saying
@@ -73,7 +73,7 @@
* in extended mode, it's 3 bytes long, otherwise it's 4 bytes long).
*/
#define XDLC_CONTROL_LEN(control, is_extended) \
- (((control & 0x3) == XDLC_U || !(is_extended)) ? 3 : 4)
+ ((((control) & 0x3) == XDLC_U || !(is_extended)) ? 3 : 4)
int get_xdlc_control(const u_char *pd, int offset, int is_response,
int extended);