From 68e75622fc7fd103b193a7440215e5b1875643a9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 6 Jun 2014 12:29:33 +0000 Subject: -avoid 'hu', as it is unsigned short, not uint16_t --- src/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 index faae9cb77..8f5907dc4 100644 --- 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; -- cgit v1.2.3