[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33567 - gnunet/src/gnsrecord
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33567 - gnunet/src/gnsrecord |
Date: |
Fri, 6 Jun 2014 14:29:33 +0200 |
Author: grothoff
Date: 2014-06-06 14:29:33 +0200 (Fri, 06 Jun 2014)
New Revision: 33567
Modified:
gnunet/src/gnsrecord/plugin_gnsrecord_dns.c
Log:
-avoid 'hu', as it is unsigned short, not uint16_t
Modified: gnunet/src/gnsrecord/plugin_gnsrecord_dns.c
===================================================================
--- gnunet/src/gnsrecord/plugin_gnsrecord_dns.c 2014-06-06 12:28:48 UTC (rev
33566)
+++ gnunet/src/gnsrecord/plugin_gnsrecord_dns.c 2014-06-06 12:29:33 UTC (rev
33567)
@@ -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 @@
return NULL;
}
GNUNET_asprintf (&result,
- "%hu,%s",
- mx->preference,
+ "%u,%s",
+ (unsigned int) mx->preference,
mx->mxhost);
GNUNET_DNSPARSER_free_mx (mx);
return result;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33567 - gnunet/src/gnsrecord,
gnunet <=