diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-01-21 23:35:32 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-01-21 23:35:32 +0000 |
commit | 961e0cdfa219f6bad77c105e21ca353cf7e776ec (patch) | |
tree | 040bcb20d313732b3a1e73b49454657517853ab6 /packet-lpd.c | |
parent | 9ff877d8fbab4b7e7174a1281a31cc65199edf5d (diff) | |
download | wireshark-961e0cdfa219f6bad77c105e21ca353cf7e776ec.tar.gz wireshark-961e0cdfa219f6bad77c105e21ca353cf7e776ec.tar.bz2 wireshark-961e0cdfa219f6bad77c105e21ca353cf7e776ec.zip |
Convert some "col_add_str()" calls to "col_set_str()".
svn path=/trunk/; revision=4592
Diffstat (limited to 'packet-lpd.c')
-rw-r--r-- | packet-lpd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-lpd.c b/packet-lpd.c index e212262ec1..3ec7024172 100644 --- a/packet-lpd.c +++ b/packet-lpd.c @@ -2,7 +2,7 @@ * Routines for LPR and LPRng packet disassembly * Gilbert Ramirez <gram@alumni.rice.edu> * - * $Id: packet-lpd.c,v 1.33 2002/01/21 07:36:37 guy Exp $ + * $Id: packet-lpd.c,v 1.34 2002/01/21 23:35:32 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -61,7 +61,7 @@ dissect_lpd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* This information comes from the LPRng HOWTO, which also describes RFC 1179. http://www.astart.com/lprng/LPRng-HOWTO.html */ - char *lpd_client_code[] = { + static char *lpd_client_code[] = { "Unknown command", "LPC: start print / jobcmd: abort", "LPR: transfer a printer job / jobcmd: receive control file", @@ -73,7 +73,7 @@ dissect_lpd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) "LPRng lpc: secure command transfer", "LPRng lpq: verbose status information" }; - char *lpd_server_code[] = { + static char *lpd_server_code[] = { "Success: accepted, proceed", "Queue not accepting jobs", "Queue temporarily full, retry later", @@ -99,7 +99,7 @@ dissect_lpd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (check_col(pinfo->cinfo, COL_INFO)) { if (lpr_packet_type == request) { - col_add_str(pinfo->cinfo, COL_INFO, lpd_client_code[code]); + col_set_str(pinfo->cinfo, COL_INFO, lpd_client_code[code]); } else if (lpr_packet_type == response) { col_set_str(pinfo->cinfo, COL_INFO, "LPD response"); |