- fprintf (stderr, "\n");
- memset (&k, 0, sizeof (GNUNET_HashCode));
- for (i = 0; i < 10; i++)
- {
- fprintf (stderr, ".");
- GNUNET_CRYPTO_hash (&k, sizeof (GNUNET_HashCode), &n);
- if (i < 2)
- ASSERT (0 == GNUNET_DATACACHE_get (h,
- &k, 1+i,
- NULL, NULL));
- if (i == 9)
- ASSERT (0 < GNUNET_DATACACHE_get (h,
- &k, 1+i,
- NULL, NULL));
- k = n;
- }
- fprintf (stderr, "\n");
+ k = n;
+ }
+ FPRINTF (stderr, "%s", "\n");
+ memset (&k, 0, sizeof (struct GNUNET_HashCode));
+ for (unsigned int i = 0; i < 10; i++)
+ {
+ FPRINTF (stderr, "%s", ".");
+ GNUNET_CRYPTO_hash (&k, sizeof (struct GNUNET_HashCode), &n);
+ if (i < 2)
+ ASSERT (0 == GNUNET_DATACACHE_get (h, &k, 1 + i, NULL, NULL));
+ if (i == 9)
+ ASSERT (0 < GNUNET_DATACACHE_get (h, &k, 1 + i, NULL, NULL));
+ k = n;
+ }
+ FPRINTF (stderr, "%s", "\n");