aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-01-31 03:17:56 +0000
committerGuy Harris <guy@alum.mit.edu>2003-01-31 03:17:56 +0000
commitab552d374661899453f7ceaf5e7e89f72727a8c1 (patch)
treeeed196787c6507ea24eadb7cd17df52989e0489d /epan/proto.c
parentf88816e60f1f14f2662c20740db6ecf3764e82b6 (diff)
Get rid of BASE_BIN - it's just the same as BASE_DEC, but people seemed
to be using it for stuff that should be hex, and for stuff that should be Boolean. Use BASE_DEC if it should be decimal, BASE_HEX if it should be hex, and make it Boolean if it should be Boolean. svn path=/trunk/; revision=7053
Diffstat (limited to 'epan/proto.c')
-rw-r--r--epan/proto.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 3e937fbb08..3eb3ed441a 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -1,7 +1,7 @@
/* proto.c
* Routines for protocol tree
*
- * $Id: proto.c,v 1.80 2003/01/21 19:20:49 gerald Exp $
+ * $Id: proto.c,v 1.81 2003/01/31 03:17:52 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -2808,7 +2808,6 @@ hfinfo_uint_vals_format(header_field_info *hfinfo)
switch(hfinfo->display) {
case BASE_DEC:
- case BASE_BIN: /* I'm lazy */
format = "%s: %s (%u)";
break;
case BASE_OCT: /* I'm lazy */
@@ -2854,7 +2853,6 @@ hfinfo_uint_format(header_field_info *hfinfo)
} else {
switch(hfinfo->display) {
case BASE_DEC:
- case BASE_BIN: /* I'm lazy */
format = "%s: %u";
break;
case BASE_OCT: /* I'm lazy */
@@ -2894,7 +2892,6 @@ hfinfo_int_vals_format(header_field_info *hfinfo)
switch(hfinfo->display) {
case BASE_DEC:
- case BASE_BIN: /* I'm lazy */
format = "%s: %s (%d)";
break;
case BASE_OCT: /* I'm lazy */
@@ -2934,7 +2931,6 @@ hfinfo_int_format(header_field_info *hfinfo)
/* Pick the proper format string */
switch(hfinfo->display) {
case BASE_DEC:
- case BASE_BIN: /* I'm lazy */
format = "%s: %d";
break;
case BASE_OCT: /* I'm lazy */
@@ -3254,7 +3250,6 @@ hfinfo_numeric_format(header_field_info *hfinfo)
switch(hfinfo->display) {
case BASE_DEC:
case BASE_OCT: /* I'm lazy */
- case BASE_BIN: /* I'm lazy */
switch(hfinfo->type) {
case FT_UINT8:
case FT_UINT16: