diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 1998-11-17 04:29:13 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 1998-11-17 04:29:13 +0000 |
commit | 470fffbe32e31e4c164477cd823fd3b92780e325 (patch) | |
tree | 750ab11a6661c391b126d4ce990b7fc01cb98d46 /packet-trmac.c | |
parent | 69fa1398275aa35864ebd22acfc7dfe3f0151c15 (diff) |
* Added column formatting functionality.
* Added check_col(), add_col_str() and add_col_fmt() to replace references
to ft->win_info.
* Added column prefs handling code.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@97 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-trmac.c')
-rw-r--r-- | packet-trmac.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-trmac.c b/packet-trmac.c index c9e06b3abe..2ef6974ff8 100644 --- a/packet-trmac.c +++ b/packet-trmac.c @@ -2,7 +2,7 @@ * Routines for Token-Ring Media Access Control * Gilbert Ramirez <gram@verdict.uthscsa.edu> * - * $Id: packet-trmac.c,v 1.7 1998/11/12 00:06:39 gram Exp $ + * $Id: packet-trmac.c,v 1.8 1998/11/17 04:29:06 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@unicom.net> @@ -277,10 +277,10 @@ dissect_trmac(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) { mv_text = match_strval(pd[offset+3], major_vectors); /* Summary information */ - if (fd->win_info[COL_NUM]) { - strcpy(fd->win_info[COL_PROTOCOL], "TR MAC"); - strcpy(fd->win_info[COL_INFO], mv_text); - } + if (check_col(fd, COL_PROTOCOL)) + col_add_str(fd, COL_PROTOCOL, "TR MAC"); + if (check_col(fd, COL_INFO)) + col_add_str(fd, COL_INFO, mv_text); if (tree) { if (mv_text) |