diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-14 17:28:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-14 17:28:42 +0000 |
commit | 8576071c0bd953da120d10df71d64bdccb4aefc8 (patch) | |
tree | 1f4e81bb4d2735b6efa3cf28ef052b8049427d3e /src/include | |
parent | 3717f40062d8163854a9b1df3a698bca86d27b69 (diff) | |
download | gnunet-8576071c0bd953da120d10df71d64bdccb4aefc8.tar.gz gnunet-8576071c0bd953da120d10df71d64bdccb4aefc8.zip |
-more work on clean main GNS logic
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_dnsparser_lib.h | 4 | ||||
-rw-r--r-- | src/include/gnunet_namestore_service.h | 5 | ||||
-rw-r--r-- | src/include/gnunet_resolver_service.h | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/src/include/gnunet_dnsparser_lib.h b/src/include/gnunet_dnsparser_lib.h index 04744e75d..fb8f588bd 100644 --- a/src/include/gnunet_dnsparser_lib.h +++ b/src/include/gnunet_dnsparser_lib.h | |||
@@ -404,7 +404,7 @@ struct GNUNET_DNSPARSER_Record | |||
404 | /** | 404 | /** |
405 | * Name of the record that the query is for (0-terminated). | 405 | * Name of the record that the query is for (0-terminated). |
406 | * In UTF-8 format. The library will convert from and to DNS-IDNA | 406 | * In UTF-8 format. The library will convert from and to DNS-IDNA |
407 | * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an | 407 | * as necessary. Use #GNUNET_DNSPARSER_check_label to test if an |
408 | * individual label is well-formed. If a given name is not well-formed, | 408 | * individual label is well-formed. If a given name is not well-formed, |
409 | * creating the DNS packet will fail. | 409 | * creating the DNS packet will fail. |
410 | */ | 410 | */ |
@@ -419,7 +419,7 @@ struct GNUNET_DNSPARSER_Record | |||
419 | /** | 419 | /** |
420 | * For NS, CNAME and PTR records, this is the uncompressed 0-terminated hostname. | 420 | * For NS, CNAME and PTR records, this is the uncompressed 0-terminated hostname. |
421 | * In UTF-8 format. The library will convert from and to DNS-IDNA | 421 | * In UTF-8 format. The library will convert from and to DNS-IDNA |
422 | * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an | 422 | * as necessary. Use #GNUNET_DNSPARSER_check_label to test if an |
423 | * individual label is well-formed. If a given name is not well-formed, | 423 | * individual label is well-formed. If a given name is not well-formed, |
424 | * creating the DNS packet will fail. | 424 | * creating the DNS packet will fail. |
425 | */ | 425 | */ |
diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h index 0fbbb0084..ddc7b038c 100644 --- a/src/include/gnunet_namestore_service.h +++ b/src/include/gnunet_namestore_service.h | |||
@@ -199,7 +199,10 @@ struct GNUNET_NAMESTORE_RecordData | |||
199 | * FIXME: goofy API: sometimes 'data' is individually | 199 | * FIXME: goofy API: sometimes 'data' is individually |
200 | * 'malloc'ed, sometimes it points into some existing | 200 | * 'malloc'ed, sometimes it points into some existing |
201 | * data area (so sometimes this should be a 'void *', | 201 | * data area (so sometimes this should be a 'void *', |
202 | * sometimes a 'const void *'). This is unclean. | 202 | * sometimes a 'const void *'). This is unclean. We |
203 | * should go over the code and make sure that 'data' | ||
204 | * is NEVER individually alloc'ed here but always points | ||
205 | * to some "other" location. | ||
203 | */ | 206 | */ |
204 | const void *data; | 207 | const void *data; |
205 | 208 | ||
diff --git a/src/include/gnunet_resolver_service.h b/src/include/gnunet_resolver_service.h index f7e5c3b72..ae98bb8a6 100644 --- a/src/include/gnunet_resolver_service.h +++ b/src/include/gnunet_resolver_service.h | |||
@@ -48,7 +48,7 @@ extern "C" | |||
48 | * @param addrlen length of the address | 48 | * @param addrlen length of the address |
49 | */ | 49 | */ |
50 | typedef void (*GNUNET_RESOLVER_AddressCallback) (void *cls, | 50 | typedef void (*GNUNET_RESOLVER_AddressCallback) (void *cls, |
51 | const struct sockaddr * addr, | 51 | const struct sockaddr *addr, |
52 | socklen_t addrlen); | 52 | socklen_t addrlen); |
53 | 53 | ||
54 | 54 | ||