aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/expert_comp_dlg.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-03-29 00:26:23 +0000
committerEvan Huus <eapache@gmail.com>2013-03-29 00:26:23 +0000
commit37600a157ba2036a79a5ebf466b31b8eee19244e (patch)
tree05b5db07655ce39ffe0c9c42c62d30a0c389b8df /ui/gtk/expert_comp_dlg.c
parent6f19d87f4e3aaa5872bdec1d9f4e50d85eee193d (diff)
Rename value string (and similar) functions to use a consistent pattern. This
was done using textual search+replace, not anything syntax-aware, so presumably it got most comments as well (except where there were typos). Use a consistent coding style, and make proper use of the WS_DLL_* defines. Group the functions appropriately in the header. I ended up getting rid of most of the explanatory comments since many of them duplicated what was in the value_string.c file (and were out of sync with the recent updates I made to those in r48633). Presumably most of the comments should be in the .h file not the .c file, but there's enough churn ahead that it's not worth fixing yet. Part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8467 svn path=/trunk/; revision=48634
Diffstat (limited to 'ui/gtk/expert_comp_dlg.c')
-rw-r--r--ui/gtk/expert_comp_dlg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/gtk/expert_comp_dlg.c b/ui/gtk/expert_comp_dlg.c
index 517f10f3f5..b7772f4353 100644
--- a/ui/gtk/expert_comp_dlg.c
+++ b/ui/gtk/expert_comp_dlg.c
@@ -681,11 +681,11 @@ expert_dlg_draw(void *data)
packet_no = ei->packet_num;
}
- /* match_strval return a static string or NULL
+ /* try_val_to_str return a static string or NULL
severity */
- severity_str = match_strval(ei->severity, expert_severity_vals);
+ severity_str = try_val_to_str(ei->severity, expert_severity_vals);
/* group */
- group_str = match_strval(ei->group, expert_group_vals);
+ group_str = try_val_to_str(ei->group, expert_group_vals);
/* protocol */
if(ei->protocol) {