From 94fc120316cf770cdf8388e5e9f14c16fb376c77 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 7 Sep 2009 12:44:07 +0000 Subject: [PATCH] fixes --- src/datastore/perf_datastore_api.c | 1 - src/hello/test_hello.c | 2 -- src/util/getopt_helpers.c | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c index 5fdf74f22..0df55f878 100644 --- a/src/datastore/perf_datastore_api.c +++ b/src/datastore/perf_datastore_api.c @@ -288,7 +288,6 @@ run_continuation (void *cls, TIMEOUT); break; case RP_REPORT: - size = 0; printf ( #if REPORT_ID "\n" diff --git a/src/hello/test_hello.c b/src/hello/test_hello.c index 51da7fc75..2f61bd702 100644 --- a/src/hello/test_hello.c +++ b/src/hello/test_hello.c @@ -98,12 +98,10 @@ main (int argc, char *argv[]) struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded publicKey; struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pk; struct GNUNET_TIME_Absolute startup_time; - int ok; unsigned int i; GNUNET_log_setup ("test-hello", "DEBUG", NULL); startup_time = GNUNET_TIME_absolute_get (); - ok = 0; memset (&publicKey, 42, sizeof (publicKey)); fprintf (stderr, "Testing HELLO creation (without addresses)...\n"); i = 0; diff --git a/src/util/getopt_helpers.c b/src/util/getopt_helpers.c index a8a800a00..d3a598626 100644 --- a/src/util/getopt_helpers.c +++ b/src/util/getopt_helpers.c @@ -84,7 +84,7 @@ GNUNET_GETOPT_format_help_ (struct GNUNET_GETOPT_CommandLineProcessorContext } if (slen < BORDER) { - printf ("%*s", BORDER - slen, ""); + printf ("%*s", (int) (BORDER - slen), ""); slen = BORDER; } trans = gettext (opt[i].description); -- 2.25.1