As suggested by Chris: use val_to_str_const() instead of match_strval() plus a
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 17 May 2011 18:58:40 +0000 (18:58 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 17 May 2011 18:58:40 +0000 (18:58 +0000)
commit18c12d416e8d7aaf10391da6979948e50e05e8da
tree238df2bb8c8d79159022e40db54ba7e738f3f94f
parentfa333ffbae4b4a6693330a969fce5d0b27efd68d
As suggested by Chris: use val_to_str_const() instead of match_strval() plus a
NULL-return check.

Use val_to_str_const instead of val_to_str() in a couple places where the string
is constant.

Use val_to_str() instead of blindly passing the return value from match_strval()
into a format routine (to ensure a non-NULL string pointer).  A couple of these
were cases where it could not actually return NULL, but I changed it for
consistency.

Store the return value of match_strval() rather than calling it repeatedly.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37204 f5534014-38df-0310-8fa8-9805f1628bb7
epan/dissectors/packet-amqp.c
epan/dissectors/packet-ansi_637.c
epan/dissectors/packet-gsm_a_gm.c
epan/dissectors/packet-hci_h1.c
epan/dissectors/packet-ieee80211.c
epan/dissectors/packet-ncp-nmas.c
epan/dissectors/packet-ncp-sss.c
epan/dissectors/packet-rpc.c
epan/dissectors/packet-ses.c
epan/dissectors/packet-spp.c