aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-03-19 19:19:01 +0000
committerChristian Grothoff <christian@grothoff.org>2012-03-19 19:19:01 +0000
commitb5ee95cb0b07320fe7ff183ac78497e9e692c147 (patch)
tree31a3e0d081996629ddc58ad8d921aaf6bb1569ac /src
parent324d77d9a7f318705a862dbeb733d7a2af9e1cfd (diff)
downloadgnunet-b5ee95cb0b07320fe7ff183ac78497e9e692c147.tar.gz
gnunet-b5ee95cb0b07320fe7ff183ac78497e9e692c147.zip
-fixing minor compilation errors and warnings
Diffstat (limited to 'src')
-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 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;
156/** 156/**
157 * Hash of the public key of the fcfsd zone. 157 * Hash of the public key of the fcfsd zone.
158 */ 158 */
159static GNUNET_HashCode fcfsd_zone; 159static struct GNUNET_CRYPTO_ShortHashCode fcfsd_zone;
160 160
161/** 161/**
162 * Private key for the fcfsd zone. 162 * Private key for the fcfsd zone.
@@ -697,11 +697,7 @@ run (void *cls, char *const *args, const char *cfgfile,
697 } 697 }
698 GNUNET_CRYPTO_rsa_key_get_public (fcfs_zone_pkey, 698 GNUNET_CRYPTO_rsa_key_get_public (fcfs_zone_pkey,
699 &pub); 699 &pub);
700 GNUNET_CRYPTO_hash (&pub, sizeof (pub), &fcfsd_zone); 700 GNUNET_CRYPTO_short_hash (&pub, sizeof (pub), &fcfsd_zone);
701 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
702 _("Managing `%s' as FCFS zone on port %llu\n"),
703 GNUNET_h2s_full (&fcfsd_zone),
704 port);
705 ns = GNUNET_NAMESTORE_connect (cfg); 701 ns = GNUNET_NAMESTORE_connect (cfg);
706 if (NULL == ns) 702 if (NULL == ns)
707 { 703 {
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)
223{ 223{
224 char *fn; 224 char *fn;
225 struct GNUNET_BIO_ReadHandle *rh; 225 struct GNUNET_BIO_ReadHandle *rh;
226 struct stat sb;
227 uint64_t fsize; 226 uint64_t fsize;
228 char *buf; 227 char *buf;
229 struct GNUNET_SERVER_MessageStreamTokenizer *mst; 228 struct GNUNET_SERVER_MessageStreamTokenizer *mst;