From fe4b246bb23c21ed4ebe02425b22f4753df0dacf Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 3 Oct 2013 11:16:07 +0000 Subject: Andrew Cann wrote: Here's a very small patch that changes one of the arguments to GNUNET_CONFIGURATION_get_value_choice. C++ doesn't allow you to cast from a (char **) to a (const char **) because that enables overwriting read-only memory. This patch makes the argument "more const" (which is always a good thing) and makes it possible to call it from C++ passing in a (char **). https://canndrew.org/misc/change_GNUNET_CONFIGURATION_get_value_choice_argument.diff --- src/include/gnunet_configuration_lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include/gnunet_configuration_lib.h') diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h index 74f7bf5ce..10cfc4138 100644 --- a/src/include/gnunet_configuration_lib.h +++ b/src/include/gnunet_configuration_lib.h @@ -394,7 +394,7 @@ GNUNET_CONFIGURATION_iterate_section_values (const struct int GNUNET_CONFIGURATION_get_value_choice (const struct GNUNET_CONFIGURATION_Handle *cfg, const char *section, - const char *option, const char **choices, + const char *option, const char *const *choices, const char **value); /** -- cgit v1.2.3