Wireshark mailing list archives

Patch: epan/stats_tree_priv.h


From: Gisle Vanem <gvanem () broadpark no>
Date: Thu, 31 May 2012 21:13:50 +0200

The implementation of 'stats_tree_get_cfg_by_abbr()' takes a
'const char *', so why shouldn't the prototype do the same?

--- SVN-Latest\epan\stats_tree_priv.h   Thu Feb 23 01:51:50 2012
+++ epan\stats_tree_priv.h      Thu May 31 13:08:15 2012
@@ -179,7 +179,7 @@
extern gchar *stats_tree_get_abbr(const gchar *optarg);

/** obtains a stats tree from the registry given its abbr */
-extern stats_tree_cfg *stats_tree_get_cfg_by_abbr(gchar *abbr);
+extern stats_tree_cfg *stats_tree_get_cfg_by_abbr(const char *abbr);

/** extracts node data as strings from a stat_node into
   the buffers given by value, rate and precent

--gv
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: