gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit 68e75622fc7fd103b193a7440215e5b1875643a9
parent 4a31631f4d45cc22836f7c9083a51043a9a0d334
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri,  6 Jun 2014 12:29:33 +0000

-avoid 'hu', as it is unsigned short, not uint16_t

Diffstat:
Msrc/gnsrecord/plugin_gnsrecord_dns.c | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/gnsrecord/plugin_gnsrecord_dns.c b/src/gnsrecord/plugin_gnsrecord_dns.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet - (C) 2013 Christian Grothoff (and other contributing authors) + (C) 2013, 2014 Christian Grothoff (and other contributing authors) GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published @@ -23,7 +23,6 @@ * @brief gnsrecord plugin to provide the API for basic DNS records * @author Christian Grothoff */ - #include "platform.h" #include "gnunet_util_lib.h" #include "gnunet_dnsparser_lib.h" @@ -189,8 +188,8 @@ dns_value_to_string (void *cls, return NULL; } GNUNET_asprintf (&result, - "%hu,%s", - mx->preference, + "%u,%s", + (unsigned int) mx->preference, mx->mxhost); GNUNET_DNSPARSER_free_mx (mx); return result;