aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-03-12 16:50:15 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-03-12 16:50:15 +0100
commit3fa8effee8723d3223864fa4e1a88244ab20b7e6 (patch)
tree5eedca42ab3f82c857e5ff7d83d7eaf51d06e80e /src/util
parent971cd96a4f1971a9ca638855d2df766d6f010de0 (diff)
downloadgnunet-3fa8effee8723d3223864fa4e1a88244ab20b7e6.tar.gz
gnunet-3fa8effee8723d3223864fa4e1a88244ab20b7e6.zip
fix ftbfs
Diffstat (limited to 'src/util')
-rw-r--r--src/util/gnunet-config.c37
1 files changed, 16 insertions, 21 deletions
diff --git a/src/util/gnunet-config.c b/src/util/gnunet-config.c
index 114efe7db..f700428a2 100644
--- a/src/util/gnunet-config.c
+++ b/src/util/gnunet-config.c
@@ -284,16 +284,14 @@ main (int argc,
284{ 284{
285 struct GNUNET_GETOPT_CommandLineOption options[] = { 285 struct GNUNET_GETOPT_CommandLineOption options[] = {
286 GNUNET_GETOPT_option_flag ('f', 286 GNUNET_GETOPT_option_flag ('f',
287 "filename", 287 "filename",
288 gettext_noop ("interpret option value as 288 gettext_noop ("interpret option value as a filename (with $-expansion)"),
289 a filename (with $-expansion)"), 289 &is_filename),
290 &is_filename),
291 GNUNET_GETOPT_option_string ('s', 290 GNUNET_GETOPT_option_string ('s',
292 "section", 291 "section",
293 "SECTION", 292 "SECTION",
294 gettext_noop ("name of the section to 293 gettext_noop ("name of the section to access"),
295 access"), 294 &section),
296 &section),
297 GNUNET_GETOPT_option_string ('o', 295 GNUNET_GETOPT_option_string ('o',
298 "option", 296 "option",
299 "OPTION", 297 "OPTION",
@@ -305,14 +303,12 @@ main (int argc,
305 gettext_noop ("value to set"), 303 gettext_noop ("value to set"),
306 &value), 304 &value),
307 GNUNET_GETOPT_option_flag ('S', 305 GNUNET_GETOPT_option_flag ('S',
308 "list-sections", 306 "list-sections",
309 gettext_noop ("print available configuration 307 gettext_noop ("print available configuration sections"),
310 sections"), 308 &list_sections),
311 &list_sections),
312 GNUNET_GETOPT_option_flag ('w', 309 GNUNET_GETOPT_option_flag ('w',
313 "rewrite", 310 "rewrite",
314 gettext_noop ("write configuration file that 311 gettext_noop ("write configuration file that only contains delta to defaults"),
315 only contains delta to defaults"),
316 &rewrite), 312 &rewrite),
317 GNUNET_GETOPT_OPTION_END 313 GNUNET_GETOPT_OPTION_END
318 }; 314 };
@@ -323,12 +319,11 @@ main (int argc,
323 319
324 ret = (GNUNET_OK == 320 ret = (GNUNET_OK ==
325 GNUNET_PROGRAM_run (argc, 321 GNUNET_PROGRAM_run (argc,
326 argv, 322 argv,
327 "gnunet-config [OPTIONS]", 323 "gnunet-config [OPTIONS]",
328 gettext_noop ("Manipulate GNUnet configuration 324 gettext_noop ("Manipulate GNUnet configuration files"),
329 files"), 325 options,
330 options, 326 &run, NULL)) ? 0 : ret;
331 &run, NULL)) ? 0 : ret;
332 GNUNET_free ((void*) argv); 327 GNUNET_free ((void*) argv);
333 return ret; 328 return ret;
334} 329}