aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/test_datacache_quota.c
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-09-06 22:46:29 +0000
committerng0 <ng0@n0.is>2019-09-06 22:46:29 +0000
commit6e599264ad13e8fc105493d74d7c11d46f8739ed (patch)
tree169bef1ecbade5a659831fb169f3ae6943af127f /src/datacache/test_datacache_quota.c
parent4f13bc15113021ebf71d5d81e99bc29f8a07fc9c (diff)
downloadgnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.tar.gz
gnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.zip
first step to remove plibc
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 7c4e56ea5..0201df3b3 100644
--- a/src/datacache/test_datacache_quota.c
+++ b/src/datacache/test_datacache_quota.c
@@ -63,7 +63,7 @@ run (void *cls,
63 63
64 if (h == NULL) 64 if (h == NULL)
65 { 65 {
66 FPRINTF (stderr, 66 fprintf (stderr,
67 "%s", 67 "%s",
68 "Failed to initialize datacache. Database likely not setup, skipping test.\n"); 68 "Failed to initialize datacache. Database likely not setup, skipping test.\n");
69 return; 69 return;
@@ -73,7 +73,7 @@ run (void *cls,
73 memset (&k, 0, sizeof (struct GNUNET_HashCode)); 73 memset (&k, 0, sizeof (struct GNUNET_HashCode));
74 for (unsigned int i = 0; i < 10; i++) 74 for (unsigned int i = 0; i < 10; i++)
75 { 75 {
76 FPRINTF (stderr, 76 fprintf (stderr,
77 "%s", 77 "%s",
78 "."); 78 ".");
79 GNUNET_CRYPTO_hash (&k, 79 GNUNET_CRYPTO_hash (&k,
@@ -97,11 +97,11 @@ run (void *cls,
97 } 97 }
98 k = n; 98 k = n;
99 } 99 }
100 FPRINTF (stderr, "%s", "\n"); 100 fprintf (stderr, "%s", "\n");
101 memset (&k, 0, sizeof (struct GNUNET_HashCode)); 101 memset (&k, 0, sizeof (struct GNUNET_HashCode));
102 for (unsigned int i = 0; i < 10; i++) 102 for (unsigned int i = 0; i < 10; i++)
103 { 103 {
104 FPRINTF (stderr, "%s", "."); 104 fprintf (stderr, "%s", ".");
105 GNUNET_CRYPTO_hash (&k, sizeof (struct GNUNET_HashCode), &n); 105 GNUNET_CRYPTO_hash (&k, sizeof (struct GNUNET_HashCode), &n);
106 if (i < 2) 106 if (i < 2)
107 ASSERT (0 == GNUNET_DATACACHE_get (h, &k, 1 + i, NULL, NULL)); 107 ASSERT (0 == GNUNET_DATACACHE_get (h, &k, 1 + i, NULL, NULL));
@@ -109,7 +109,7 @@ run (void *cls,
109 ASSERT (0 < GNUNET_DATACACHE_get (h, &k, 1 + i, NULL, NULL)); 109 ASSERT (0 < GNUNET_DATACACHE_get (h, &k, 1 + i, NULL, NULL));
110 k = n; 110 k = n;
111 } 111 }
112 FPRINTF (stderr, "%s", "\n"); 112 fprintf (stderr, "%s", "\n");
113 GNUNET_DATACACHE_destroy (h); 113 GNUNET_DATACACHE_destroy (h);
114 return; 114 return;
115FAILURE: 115FAILURE:
@@ -152,7 +152,7 @@ main (int argc,
152 &run, 152 &run,
153 NULL); 153 NULL);
154 if (0 != ok) 154 if (0 != ok)
155 FPRINTF (stderr, 155 fprintf (stderr,
156 "Missed some testcases: %d\n", 156 "Missed some testcases: %d\n",
157 ok); 157 ok);
158 return ok; 158 return ok;