diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-07-30 02:06:13 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-07-30 02:06:13 +0000 |
commit | 0e69aab43b43ec869d172346a004486ae4e6cd0c (patch) | |
tree | bc3b44f7a47aa87a6507043f8420ef06f4770880 /epan/dissectors/packet-lpd.c | |
parent | 5602f5bb833647428967edbc5b1e99bf865646f0 (diff) |
Declare the value_string tables as arrays of value_strings, not of
pointers to same, and make them "const" while we're at it.
svn path=/trunk/; revision=15147
Diffstat (limited to 'epan/dissectors/packet-lpd.c')
-rw-r--r-- | epan/dissectors/packet-lpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-lpd.c b/epan/dissectors/packet-lpd.c index abe592d06c..cd5aa3ccb4 100644 --- a/epan/dissectors/packet-lpd.c +++ b/epan/dissectors/packet-lpd.c @@ -57,7 +57,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 */ - static value_string *lpd_client_code[] = { + static const value_string lpd_client_code[] = { { 1, "LPC: start print / jobcmd: abort" }, { 2, "LPR: transfer a printer job / jobcmd: receive control file" }, { 3, "LPQ: print short form of queue status / jobcmd: receive data file" }, @@ -69,7 +69,7 @@ dissect_lpd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { 9, "LPRng lpq: verbose status information" }, { 0, NULL } }; - static value_string *lpd_server_code[] = { + static const value_string lpd_server_code[] = { { 0, "Success: accepted, proceed" }, { 1, "Queue not accepting jobs" }, { 2, "Queue temporarily full, retry later" }, |