From: Christian Grothoff Date: Mon, 19 Mar 2012 19:19:01 +0000 (+0000) Subject: -fixing minor compilation errors and warnings X-Git-Tag: initial-import-from-subversion-38251~14186 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b5ee95cb0b07320fe7ff183ac78497e9e692c147;p=oweals%2Fgnunet.git -fixing minor compilation errors and warnings --- diff --git a/src/gns/gnunet-gns-fcfsd.c b/src/gns/gnunet-gns-fcfsd.c index b52d8473b..8cc9ba157 100644 --- a/src/gns/gnunet-gns-fcfsd.c +++ b/src/gns/gnunet-gns-fcfsd.c @@ -156,7 +156,7 @@ static struct GNUNET_NAMESTORE_Handle *ns; /** * Hash of the public key of the fcfsd zone. */ -static GNUNET_HashCode fcfsd_zone; +static struct GNUNET_CRYPTO_ShortHashCode fcfsd_zone; /** * Private key for the fcfsd zone. @@ -697,11 +697,7 @@ run (void *cls, char *const *args, const char *cfgfile, } GNUNET_CRYPTO_rsa_key_get_public (fcfs_zone_pkey, &pub); - GNUNET_CRYPTO_hash (&pub, sizeof (pub), &fcfsd_zone); - GNUNET_log (GNUNET_ERROR_TYPE_INFO, - _("Managing `%s' as FCFS zone on port %llu\n"), - GNUNET_h2s_full (&fcfsd_zone), - port); + GNUNET_CRYPTO_short_hash (&pub, sizeof (pub), &fcfsd_zone); ns = GNUNET_NAMESTORE_connect (cfg); if (NULL == ns) { diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c index 1ec07ad5d..a1a2c3abd 100644 --- a/src/statistics/gnunet-service-statistics.c +++ b/src/statistics/gnunet-service-statistics.c @@ -223,7 +223,6 @@ load (struct GNUNET_SERVER_Handle *server) { char *fn; struct GNUNET_BIO_ReadHandle *rh; - struct stat sb; uint64_t fsize; char *buf; struct GNUNET_SERVER_MessageStreamTokenizer *mst;