diff options
author | Gerald Combs <gerald@wireshark.org> | 1998-11-17 04:29:13 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 1998-11-17 04:29:13 +0000 |
commit | 6ca358948b8c5aa99a4e0db8595f601ab834e76e (patch) | |
tree | 750ab11a6661c391b126d4ce990b7fc01cb98d46 /packet-ncp.c | |
parent | 8d616b03429fe2185782f5153d7b187a44698b5d (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.
svn path=/trunk/; revision=97
Diffstat (limited to 'packet-ncp.c')
-rw-r--r-- | packet-ncp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-ncp.c b/packet-ncp.c index 6c9a10ed7f..e014eba868 100644 --- a/packet-ncp.c +++ b/packet-ncp.c @@ -2,7 +2,7 @@ * Routines for NetWare Core Protocol * Gilbert Ramirez <gram@verdict.uthscsa.edu> * - * $Id: packet-ncp.c,v 1.6 1998/11/12 00:06:34 gram Exp $ + * $Id: packet-ncp.c,v 1.7 1998/11/17 04:28:59 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@unicom.net> @@ -212,12 +212,12 @@ dissect_ncp(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) { ncp_hdr = 6; /* in order to get ncp_type_text[0] */ } - if (fd->win_info[COL_NUM]) { - strcpy(fd->win_info[COL_PROTOCOL], "NCP"); + if (check_col(fd, COL_PROTOCOL)) + col_add_str(fd, COL_PROTOCOL, "NCP"); + if (check_col(fd, COL_INFO)) /* I take advantage of the ncp_hdr length to use as an index into * ncp_type_text[]. Ugly hack, but quick. */ - sprintf(fd->win_info[COL_INFO], "%s", ncp_type_text[ncp_hdr - 6]); - } + col_add_fstr(fd, COL_INFO, "%s", ncp_type_text[ncp_hdr - 6]); if (tree) { |