diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-06 12:29:33 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-06 12:29:33 +0000 |
commit | 68e75622fc7fd103b193a7440215e5b1875643a9 (patch) | |
tree | 784e95f4316d2ab69418bf007d5e1d85105a7696 | |
parent | 4a31631f4d45cc22836f7c9083a51043a9a0d334 (diff) | |
download | gnunet-68e75622fc7fd103b193a7440215e5b1875643a9.tar.gz gnunet-68e75622fc7fd103b193a7440215e5b1875643a9.zip |
-avoid 'hu', as it is unsigned short, not uint16_t
-rw-r--r-- | src/gnsrecord/plugin_gnsrecord_dns.c | 7 |
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; |