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-lpd.c | |
parent | 8d616b03429fe2185782f5153d7b187a44698b5d (diff) | |
download | wireshark-6ca358948b8c5aa99a4e0db8595f601ab834e76e.tar.gz wireshark-6ca358948b8c5aa99a4e0db8595f601ab834e76e.tar.bz2 wireshark-6ca358948b8c5aa99a4e0db8595f601ab834e76e.zip |
* 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-lpd.c')
-rw-r--r-- | packet-lpd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/packet-lpd.c b/packet-lpd.c index 151cd63e4d..49a2f4439a 100644 --- a/packet-lpd.c +++ b/packet-lpd.c @@ -2,7 +2,7 @@ * Routines for LPR and LPRng packet disassembly * Gilbert Ramirez <gram@verdict.uthscsa.edu> * - * $Id: packet-lpd.c,v 1.4 1998/11/12 00:06:31 gram Exp $ + * $Id: packet-lpd.c,v 1.5 1998/11/17 04:28:57 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@unicom.net> @@ -89,13 +89,14 @@ dissect_lpd(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) } - if (fd->win_info[COL_NUM]) { - strcpy(fd->win_info[COL_PROTOCOL], "LPD"); + if (check_col(fd, COL_PROTOCOL)) + col_add_str(fd, COL_PROTOCOL, "LPD"); + if (check_col(fd, COL_INFO)) { if (lpr_packet_type == request) { - strcpy(fd->win_info[COL_INFO], lpd_client_code[pd[offset]]); + col_add_str(fd, COL_INFO, lpd_client_code[pd[offset]]); } else { - strcpy(fd->win_info[COL_INFO], "LPD response"); + col_add_str(fd, COL_INFO, "LPD response"); } } |