aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-28 09:58:07 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-28 09:58:07 +0000
commitae4f506a574161c3baaf071d491f8c4987bc0623 (patch)
tree6cf85f6933fdfdb562bcc85e7d4926cab0dc2d50 /src/namestore
parentbc0b7fac93289d5b310a23837c55acd5ee11027b (diff)
downloadgnunet-ae4f506a574161c3baaf071d491f8c4987bc0623.tar.gz
gnunet-ae4f506a574161c3baaf071d491f8c4987bc0623.zip
Andrew Cann wrote:
This patch changes the name of a couple of variables that had c++-incompatible names and adds a header file to gnunet_network_lib.h https://canndrew.org/misc/change_cpp_incompatible_variable_names.diff
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/namestore_api_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/namestore_api_common.c b/src/namestore/namestore_api_common.c
index b5a777083..55c9055ff 100644
--- a/src/namestore/namestore_api_common.c
+++ b/src/namestore/namestore_api_common.c
@@ -1069,13 +1069,13 @@ static struct {
1069 * @return corresponding number, UINT32_MAX on error 1069 * @return corresponding number, UINT32_MAX on error
1070 */ 1070 */
1071uint32_t 1071uint32_t
1072GNUNET_NAMESTORE_typename_to_number (const char *typename) 1072GNUNET_NAMESTORE_typename_to_number (const char *dns_typename)
1073{ 1073{
1074 unsigned int i; 1074 unsigned int i;
1075 1075
1076 i=0; 1076 i=0;
1077 while ( (name_map[i].name != NULL) && 1077 while ( (name_map[i].name != NULL) &&
1078 (0 != strcasecmp (typename, name_map[i].name)) ) 1078 (0 != strcasecmp (dns_typename, name_map[i].name)) )
1079 i++; 1079 i++;
1080 return name_map[i].number; 1080 return name_map[i].number;
1081} 1081}