aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-03-19 19:19:01 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-03-19 19:19:01 +0000
commit0ddc603e38a749c3e2ce835c3a70e5fe50e443cb (patch)
tree31a3e0d081996629ddc58ad8d921aaf6bb1569ac
parent9d048da655c613031e71df73039caf408c4c0a91 (diff)
-fixing minor compilation errors and warnings
git-svn-id: https://gnunet.org/svn/gnunet@20619 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r--src/gns/gnunet-gns-fcfsd.c8
-rw-r--r--src/statistics/gnunet-service-statistics.c1
2 files changed, 2 insertions, 7 deletions
diff --git a/src/gns/gnunet-gns-fcfsd.c b/src/gns/gnunet-gns-fcfsd.c
index b52d8473b8..8cc9ba1574 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 1ec07ad5dc..a1a2c3abdc 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;