From 42d22cf0a3e6630a90e15f9f615d8d58c342a4af Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 16 Jan 2001 23:35:58 +0000 Subject: Do not use "match_strval()" unless you're prepared to check whether it returns NULL and do something appropriate if it does so; instead, use "val_to_str()", and let *it* worry about the value passed to it not having a corresponding string. svn path=/trunk/; revision=2908 --- packet-giop.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'packet-giop.c') diff --git a/packet-giop.c b/packet-giop.c index 3eceaaa6c4..6e7bbc9440 100644 --- a/packet-giop.c +++ b/packet-giop.c @@ -4,7 +4,7 @@ * Laurent Deniel * Craig Rodrigues * - * $Id: packet-giop.c,v 1.28 2001/01/09 06:31:35 guy Exp $ + * $Id: packet-giop.c,v 1.29 2001/01/16 23:35:58 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -647,13 +647,13 @@ dissect_giop_reply (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, if (check_col(pinfo->fd, COL_INFO)) { col_append_fstr(pinfo->fd, COL_INFO, ": %s", - match_strval(reply_status, reply_status_types)); + val_to_str(reply_status, reply_status_types, "Unknown (%u)")); } if (tree) { proto_tree_add_text (reply_tree, tvb, offset-4, 4, - "Reply status: %s", - match_strval(reply_status, reply_status_types)); + "Reply status: %s", + val_to_str(reply_status, reply_status_types, "Unknown (%u)")); } @@ -714,13 +714,13 @@ dissect_giop_reply_1_2 (tvbuff_t * tvb, packet_info * pinfo, if (check_col(pinfo->fd, COL_INFO)) { col_append_fstr(pinfo->fd, COL_INFO, ": %s", - match_strval(reply_status, reply_status_types)); + val_to_str(reply_status, reply_status_types, "Unknown (%u)")); } if (tree) { proto_tree_add_text (reply_tree, tvb, offset-4, 4, - "Reply status: %s", - match_strval(reply_status, reply_status_types)); + "Reply status: %s", + val_to_str(reply_status, reply_status_types, "Unknown (%u)")); } -- cgit v1.2.3