diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-12 19:07:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-12 19:07:40 +0000 |
commit | 6c471eeb15e27f8226492b4860a3c2acb94c5f25 (patch) | |
tree | a3a9dcba12ee5356c03056c10b7aba5367b2ef34 /src/datastore/test_plugin_datastore.c | |
parent | 16bcbbea7133fd2265d46bd2ae1dc70e8c9ba96f (diff) | |
download | gnunet-6c471eeb15e27f8226492b4860a3c2acb94c5f25.tar.gz gnunet-6c471eeb15e27f8226492b4860a3c2acb94c5f25.zip |
-consistently use struct GNUNET_HashCode
Diffstat (limited to 'src/datastore/test_plugin_datastore.c')
-rw-r--r-- | src/datastore/test_plugin_datastore.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/datastore/test_plugin_datastore.c b/src/datastore/test_plugin_datastore.c index a228e1004..96a5aebe5 100644 --- a/src/datastore/test_plugin_datastore.c +++ b/src/datastore/test_plugin_datastore.c | |||
@@ -84,11 +84,11 @@ disk_utilization_change_cb (void *cls, int delta) | |||
84 | 84 | ||
85 | 85 | ||
86 | static void | 86 | static void |
87 | gen_key (int i, GNUNET_HashCode * key) | 87 | gen_key (int i, struct GNUNET_HashCode * key) |
88 | { | 88 | { |
89 | memset (key, 0, sizeof (GNUNET_HashCode)); | 89 | memset (key, 0, sizeof (struct GNUNET_HashCode)); |
90 | key->bits[0] = (unsigned int) i; | 90 | key->bits[0] = (unsigned int) i; |
91 | GNUNET_CRYPTO_hash (key, sizeof (GNUNET_HashCode), key); | 91 | GNUNET_CRYPTO_hash (key, sizeof (struct GNUNET_HashCode), key); |
92 | } | 92 | } |
93 | 93 | ||
94 | 94 | ||
@@ -97,7 +97,7 @@ put_value (struct GNUNET_DATASTORE_PluginFunctions *api, int i, int k) | |||
97 | { | 97 | { |
98 | char value[65536]; | 98 | char value[65536]; |
99 | size_t size; | 99 | size_t size; |
100 | GNUNET_HashCode key; | 100 | struct GNUNET_HashCode key; |
101 | char *msg; | 101 | char *msg; |
102 | unsigned int prio; | 102 | unsigned int prio; |
103 | 103 | ||
@@ -147,7 +147,7 @@ static uint64_t guid; | |||
147 | 147 | ||
148 | 148 | ||
149 | static int | 149 | static int |
150 | iterate_one_shot (void *cls, const GNUNET_HashCode * key, uint32_t size, | 150 | iterate_one_shot (void *cls, const struct GNUNET_HashCode * key, uint32_t size, |
151 | const void *data, enum GNUNET_BLOCK_Type type, | 151 | const void *data, enum GNUNET_BLOCK_Type type, |
152 | uint32_t priority, uint32_t anonymity, | 152 | uint32_t priority, uint32_t anonymity, |
153 | struct GNUNET_TIME_Absolute expiration, uint64_t uid) | 153 | struct GNUNET_TIME_Absolute expiration, uint64_t uid) |
@@ -218,7 +218,7 @@ test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
218 | int j; | 218 | int j; |
219 | unsigned long long os; | 219 | unsigned long long os; |
220 | unsigned long long cs; | 220 | unsigned long long cs; |
221 | GNUNET_HashCode key; | 221 | struct GNUNET_HashCode key; |
222 | 222 | ||
223 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) | 223 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) |
224 | { | 224 | { |