aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/test_datacache_quota.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datacache/test_datacache_quota.c')
-rw-r--r--src/datacache/test_datacache_quota.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/datacache/test_datacache_quota.c b/src/datacache/test_datacache_quota.c
index 5325b398f..1f252c14a 100644
--- a/src/datacache/test_datacache_quota.c
+++ b/src/datacache/test_datacache_quota.c
@@ -47,8 +47,8 @@ run (void *cls, char *const *args, const char *cfgfile,
47 const struct GNUNET_CONFIGURATION_Handle *cfg) 47 const struct GNUNET_CONFIGURATION_Handle *cfg)
48{ 48{
49 struct GNUNET_DATACACHE_Handle *h; 49 struct GNUNET_DATACACHE_Handle *h;
50 GNUNET_HashCode k; 50 struct GNUNET_HashCode k;
51 GNUNET_HashCode n; 51 struct GNUNET_HashCode n;
52 unsigned int i; 52 unsigned int i;
53 unsigned int j; 53 unsigned int j;
54 char buf[3200]; 54 char buf[3200];
@@ -64,11 +64,11 @@ run (void *cls, char *const *args, const char *cfgfile,
64 } 64 }
65 exp = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS); 65 exp = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS);
66 memset (buf, 1, sizeof (buf)); 66 memset (buf, 1, sizeof (buf));
67 memset (&k, 0, sizeof (GNUNET_HashCode)); 67 memset (&k, 0, sizeof (struct GNUNET_HashCode));
68 for (i = 0; i < 10; i++) 68 for (i = 0; i < 10; i++)
69 { 69 {
70 FPRINTF (stderr, "%s", "."); 70 FPRINTF (stderr, "%s", ".");
71 GNUNET_CRYPTO_hash (&k, sizeof (GNUNET_HashCode), &n); 71 GNUNET_CRYPTO_hash (&k, sizeof (struct GNUNET_HashCode), &n);
72 for (j = i; j < sizeof (buf); j += 10) 72 for (j = i; j < sizeof (buf); j += 10)
73 { 73 {
74 exp.abs_value++; 74 exp.abs_value++;
@@ -79,11 +79,11 @@ run (void *cls, char *const *args, const char *cfgfile,
79 k = n; 79 k = n;
80 } 80 }
81 FPRINTF (stderr, "%s", "\n"); 81 FPRINTF (stderr, "%s", "\n");
82 memset (&k, 0, sizeof (GNUNET_HashCode)); 82 memset (&k, 0, sizeof (struct GNUNET_HashCode));
83 for (i = 0; i < 10; i++) 83 for (i = 0; i < 10; i++)
84 { 84 {
85 FPRINTF (stderr, "%s", "."); 85 FPRINTF (stderr, "%s", ".");
86 GNUNET_CRYPTO_hash (&k, sizeof (GNUNET_HashCode), &n); 86 GNUNET_CRYPTO_hash (&k, sizeof (struct GNUNET_HashCode), &n);
87 if (i < 2) 87 if (i < 2)
88 ASSERT (0 == GNUNET_DATACACHE_get (h, &k, 1 + i, NULL, NULL)); 88 ASSERT (0 == GNUNET_DATACACHE_get (h, &k, 1 + i, NULL, NULL));
89 if (i == 9) 89 if (i == 9)