aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet_info.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-08-22 18:53:54 +0000
committerGuy Harris <guy@alum.mit.edu>2002-08-22 18:53:54 +0000
commitfdf6f4717606b65f1431a4151c5bdbfb95f59f31 (patch)
tree91486d185719b30c2117815911d71ea6e134b1c3 /epan/packet_info.h
parentcc6c8214eb17ac2eef5413859a9a589ea5f58cbe (diff)
Fix the comment before "CMP_ADDRESS()" to reflect reality ("memcmp()"
isn't guaranteed to return 0, 1, or -1, it returns *some* positive number, not necessarily 1, if the first argument is greater than the second, and *some* negative number, not necessarily -1, if the first argument is less than the second). svn path=/trunk/; revision=6063
Diffstat (limited to 'epan/packet_info.h')
-rw-r--r--epan/packet_info.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/packet_info.h b/epan/packet_info.h
index 086950cb47..c78e26e7f7 100644
--- a/epan/packet_info.h
+++ b/epan/packet_info.h
@@ -1,7 +1,7 @@
/* packet_info.h
* Definitions for packet info structures and routines
*
- * $Id: packet_info.h,v 1.17 2002/07/31 11:16:19 sahlberg Exp $
+ * $Id: packet_info.h,v 1.18 2002/08/22 18:53:54 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -57,8 +57,8 @@ typedef struct _address {
/*
* Given two addresses, return
* 0 if the addresses are equal,
- * 1 if addr1>addr2 in some nondefined metric
- * -1 if addr1<addr2 in some nondefined metric
+ * a positive number if addr1>addr2 in some nondefined metric,
+ * a negative number if addr1<addr2 in some nondefined metric
*/
#define CMP_ADDRESS(addr1, addr2) \
( ((addr1)->type > (addr2)->type)?1: \