-fixing minor compilation errors and warnings
authorChristian Grothoff <christian@grothoff.org>
Mon, 19 Mar 2012 19:19:01 +0000 (19:19 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 19 Mar 2012 19:19:01 +0000 (19:19 +0000)
src/gns/gnunet-gns-fcfsd.c
src/statistics/gnunet-service-statistics.c

index b52d8473b8d004ed01e7a4e76436d789f2604d55..8cc9ba1574cfb1e6c541d1c7650a5dc4bfd8a048 100644 (file)
@@ -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)
     {
index 1ec07ad5dc40eb0ee649ead935ea5df36b155f6e..a1a2c3abdcf79b6d492e4c52874ca6408f8743a9 100644 (file)
@@ -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;