diff options
Diffstat (limited to 'src/datastore/gnunet-datastore.c')
-rw-r--r-- | src/datastore/gnunet-datastore.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/datastore/gnunet-datastore.c b/src/datastore/gnunet-datastore.c index b3d14c43c..c93bc8dd3 100644 --- a/src/datastore/gnunet-datastore.c +++ b/src/datastore/gnunet-datastore.c | |||
@@ -171,7 +171,7 @@ static void | |||
171 | do_get () | 171 | do_get () |
172 | { | 172 | { |
173 | qe = GNUNET_DATASTORE_get_key (db_src, | 173 | qe = GNUNET_DATASTORE_get_key (db_src, |
174 | offset, | 174 | 0, false, |
175 | NULL, GNUNET_BLOCK_TYPE_ANY, | 175 | NULL, GNUNET_BLOCK_TYPE_ANY, |
176 | 0, 1, | 176 | 0, 1, |
177 | &do_put, NULL); | 177 | &do_put, NULL); |
@@ -239,10 +239,12 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
239 | int | 239 | int |
240 | main (int argc, char *const *argv) | 240 | main (int argc, char *const *argv) |
241 | { | 241 | { |
242 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 242 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
243 | { 's', "sourcecfg", "FILENAME", | 243 | GNUNET_GETOPT_OPTION_FILENAME ('s', |
244 | gettext_noop ("specifies the configuration to use to access an alternative datastore; will merge that datastore into our current datastore"), | 244 | "sourcecfg", |
245 | 1, &GNUNET_GETOPT_set_filename, &alternative_cfg }, | 245 | "FILENAME", |
246 | gettext_noop ("specifies the configuration to use to access an alternative datastore; will merge that datastore into our current datastore"), | ||
247 | &alternative_cfg), | ||
246 | GNUNET_GETOPT_OPTION_END | 248 | GNUNET_GETOPT_OPTION_END |
247 | }; | 249 | }; |
248 | if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) | 250 | if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) |