aboutsummaryrefslogtreecommitdiff
path: root/src/gnsrecord
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnsrecord')
-rw-r--r--src/gnsrecord/plugin_gnsrecord_dns.c7
1 files 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 @@
1/* 1/*
2 This file is part of GNUnet 2 This file is part of GNUnet
3 (C) 2013 Christian Grothoff (and other contributing authors) 3 (C) 2013, 2014 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -23,7 +23,6 @@
23 * @brief gnsrecord plugin to provide the API for basic DNS records 23 * @brief gnsrecord plugin to provide the API for basic DNS records
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
26
27#include "platform.h" 26#include "platform.h"
28#include "gnunet_util_lib.h" 27#include "gnunet_util_lib.h"
29#include "gnunet_dnsparser_lib.h" 28#include "gnunet_dnsparser_lib.h"
@@ -189,8 +188,8 @@ dns_value_to_string (void *cls,
189 return NULL; 188 return NULL;
190 } 189 }
191 GNUNET_asprintf (&result, 190 GNUNET_asprintf (&result,
192 "%hu,%s", 191 "%u,%s",
193 mx->preference, 192 (unsigned int) mx->preference,
194 mx->mxhost); 193 mx->mxhost);
195 GNUNET_DNSPARSER_free_mx (mx); 194 GNUNET_DNSPARSER_free_mx (mx);
196 return result; 195 return result;