From Todd Sabin: cleaned up "get_column_format_matches()".

svn path=/trunk/; revision=3684
This commit is contained in:
Guy Harris 2001-07-11 04:44:58 +00:00
parent 20d911b213
commit 02f60e7c2c
2 changed files with 53 additions and 54 deletions

View File

@ -588,6 +588,7 @@ Charles Levert <charles@comm.polymtl.ca> {
Todd Sabin <tas@webspan.net> {
DCE RPC support
Cleaned up "get_column_format_matches()"
}
Eduardo Pérez Ureta <eperez@dei.inf.uc3m.es> {

View File

@ -1,7 +1,7 @@
/* column.c
* Routines for handling column preferences
*
* $Id: column.c,v 1.30 2000/11/17 21:00:35 gram Exp $
* $Id: column.c,v 1.31 2001/07/11 04:44:58 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@ -96,12 +96,11 @@ col_format_desc(gint fmt) {
column format */
void
get_column_format_matches(gboolean *fmt_list, gint format) {
int i;
for (i = 0; i < NUM_COL_FMTS; i++) {
/* Get the obvious: the format itself */
if (i == format)
fmt_list[i] = TRUE;
if ((format >= 0) && (format < NUM_COL_FMTS))
fmt_list[format] = TRUE;
/* Get any formats lower down on the chain */
switch (format) {
case COL_DEF_SRC:
@ -149,7 +148,6 @@ get_column_format_matches(gboolean *fmt_list, gint format) {
default:
break;
}
}
}
/* Returns a string representing the longest possible value for a