aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_plugin_namestore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/test_plugin_namestore.c')
-rw-r--r--src/namestore/test_plugin_namestore.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/namestore/test_plugin_namestore.c b/src/namestore/test_plugin_namestore.c
index d7742373a..5274e8bca 100644
--- a/src/namestore/test_plugin_namestore.c
+++ b/src/namestore/test_plugin_namestore.c
@@ -79,7 +79,7 @@ load_plugin (const struct GNUNET_CONFIGURATION_Handle *cfg)
79} 79}
80 80
81 81
82static void 82static void
83test_record (void *cls, 83test_record (void *cls,
84 const struct GNUNET_CRYPTO_EccPrivateKey *private_key, 84 const struct GNUNET_CRYPTO_EccPrivateKey *private_key,
85 const char *label, 85 const char *label,
@@ -134,7 +134,7 @@ put_record (struct GNUNET_NAMESTORE_PluginFunctions *nsp, int id)
134 rd[i].data_size = id % 10; 134 rd[i].data_size = id % 10;
135 rd[i].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_MINUTES).abs_value_us; 135 rd[i].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_MINUTES).abs_value_us;
136 rd[i].record_type = 1 + (id % 13); 136 rd[i].record_type = 1 + (id % 13);
137 rd[i].flags = (id % 7); 137 rd[i].flags = (id % 7);
138 } 138 }
139 memset (&zone_private_key, (id % 241), sizeof (zone_private_key)); 139 memset (&zone_private_key, (id % 241), sizeof (zone_private_key));
140 memset (&signature, (id % 243), sizeof (signature)); 140 memset (&signature, (id % 243), sizeof (signature));
@@ -150,14 +150,14 @@ static void
150run (void *cls, char *const *args, const char *cfgfile, 150run (void *cls, char *const *args, const char *cfgfile,
151 const struct GNUNET_CONFIGURATION_Handle *cfg) 151 const struct GNUNET_CONFIGURATION_Handle *cfg)
152{ 152{
153 struct GNUNET_NAMESTORE_PluginFunctions *nsp; 153 struct GNUNET_NAMESTORE_PluginFunctions *nsp;
154 154
155 ok = 0; 155 ok = 0;
156 nsp = load_plugin (cfg); 156 nsp = load_plugin (cfg);
157 if (NULL == nsp) 157 if (NULL == nsp)
158 { 158 {
159 FPRINTF (stderr, 159 FPRINTF (stderr,
160 "%s", 160 "%s",
161 "Failed to initialize namestore. Database likely not setup, skipping test.\n"); 161 "Failed to initialize namestore. Database likely not setup, skipping test.\n");
162 return; 162 return;
163 } 163 }