aboutsummaryrefslogtreecommitdiff
path: root/src/util/configuration.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-03 11:16:07 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-03 11:16:07 +0000
commitfe4b246bb23c21ed4ebe02425b22f4753df0dacf (patch)
tree3acf634ce34376bf6ae4c69788cdbf393b0c64a1 /src/util/configuration.c
parentf6e438ef6e618af3e7320a96e7d08887311635f3 (diff)
downloadgnunet-fe4b246bb23c21ed4ebe02425b22f4753df0dacf.tar.gz
gnunet-fe4b246bb23c21ed4ebe02425b22f4753df0dacf.zip
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
Diffstat (limited to 'src/util/configuration.c')
-rw-r--r--src/util/configuration.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/configuration.c b/src/util/configuration.c
index 69e2168c1..a1150aa9b 100644
--- a/src/util/configuration.c
+++ b/src/util/configuration.c
@@ -964,7 +964,7 @@ GNUNET_CONFIGURATION_get_value_string (const struct GNUNET_CONFIGURATION_Handle
964int 964int
965GNUNET_CONFIGURATION_get_value_choice (const struct GNUNET_CONFIGURATION_Handle 965GNUNET_CONFIGURATION_get_value_choice (const struct GNUNET_CONFIGURATION_Handle
966 *cfg, const char *section, 966 *cfg, const char *section,
967 const char *option, const char **choices, 967 const char *option, const char *const *choices,
968 const char **value) 968 const char **value)
969{ 969{
970 struct ConfigEntry *e; 970 struct ConfigEntry *e;