From: Christian Grothoff Date: Thu, 22 Nov 2018 20:09:20 +0000 (+0100) Subject: try to fix FTBFS of martin X-Git-Tag: v0.11.0~221 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a3a300f43a354c786d74c1952aba6a7816157c97;p=oweals%2Fgnunet.git try to fix FTBFS of martin --- diff --git a/src/hello/hello-ng.c b/src/hello/hello-ng.c index 46c83a7eb..fcd1808f4 100644 --- a/src/hello/hello-ng.c +++ b/src/hello/hello-ng.c @@ -11,7 +11,7 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -26,6 +26,7 @@ #include "gnunet_hello_lib.h" #include "gnunet_protocols.h" #include "gnunet_util_lib.h" +#include "gnunet_ats_service.h" /** * Binary block we sign when we sign an address. @@ -70,7 +71,7 @@ GNUNET_HELLO_sign_address (const char *address, struct SignedAddress sa; struct GNUNET_CRYPTO_EddsaSignature sig; char *sig_str; - + sa.purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS); sa.purpose.size = htonl (sizeof (sa)); sa.expiration = GNUNET_TIME_absolute_hton (expiration); @@ -91,10 +92,10 @@ GNUNET_HELLO_sign_address (const char *address, (unsigned long long) expiration.abs_value_us, (unsigned int) nt, address); - GNUNET_free (sig_str); + GNUNET_free (sig_str); } - + /** * Check signature and extract address record. * @@ -168,7 +169,7 @@ GNUNET_HELLO_extract_address (const void *raw, return NULL; } raw_addr = sc3 + 1; - + sa.purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS); sa.purpose.size = htonl (sizeof (sa)); sa.expiration = GNUNET_TIME_absolute_hton (raw_expiration); @@ -190,5 +191,3 @@ GNUNET_HELLO_extract_address (const void *raw, *nt = (enum GNUNET_ATS_Network_Type) raw_nt; return GNUNET_strdup (raw_addr); } - -