aboutsummaryrefslogtreecommitdiff
path: root/src/consensus
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-25 21:25:44 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-25 21:25:44 +0100
commit5a7cef0202631204485cbcb1e36671e4321a936f (patch)
treeff3d10ac71f9284f18be7c33939f3438071e15c4 /src/consensus
parent2ad934742422ecb63fe3fafdc8c73d067a9e2fb7 (diff)
downloadgnunet-5a7cef0202631204485cbcb1e36671e4321a936f.tar.gz
gnunet-5a7cef0202631204485cbcb1e36671e4321a936f.zip
rename GNUNET_GETOPT functions to achieve better consistency
Diffstat (limited to 'src/consensus')
-rw-r--r--src/consensus/gnunet-consensus-profiler.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/consensus/gnunet-consensus-profiler.c b/src/consensus/gnunet-consensus-profiler.c
index 8cc1b3512..68c2ad594 100644
--- a/src/consensus/gnunet-consensus-profiler.c
+++ b/src/consensus/gnunet-consensus-profiler.c
@@ -517,49 +517,49 @@ main (int argc, char **argv)
517{ 517{
518 struct GNUNET_GETOPT_CommandLineOption options[] = { 518 struct GNUNET_GETOPT_CommandLineOption options[] = {
519 519
520 GNUNET_GETOPT_OPTION_SET_UINT ('n', 520 GNUNET_GETOPT_option_uint ('n',
521 "num-peers", 521 "num-peers",
522 NULL, 522 NULL,
523 gettext_noop ("number of peers in consensus"), 523 gettext_noop ("number of peers in consensus"),
524 &num_peers), 524 &num_peers),
525 525
526 GNUNET_GETOPT_OPTION_SET_UINT ('k', 526 GNUNET_GETOPT_option_uint ('k',
527 "value-replication", 527 "value-replication",
528 NULL, 528 NULL,
529 gettext_noop ("how many peers (random selection without replacement) receive one value?"), 529 gettext_noop ("how many peers (random selection without replacement) receive one value?"),
530 &replication), 530 &replication),
531 531
532 GNUNET_GETOPT_OPTION_SET_UINT ('x', 532 GNUNET_GETOPT_option_uint ('x',
533 "num-values", 533 "num-values",
534 NULL, 534 NULL,
535 gettext_noop ("number of values"), 535 gettext_noop ("number of values"),
536 &num_values), 536 &num_values),
537 537
538 GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('t', 538 GNUNET_GETOPT_option_relative_time ('t',
539 "timeout", 539 "timeout",
540 NULL, 540 NULL,
541 gettext_noop ("consensus timeout"), 541 gettext_noop ("consensus timeout"),
542 &conclude_timeout), 542 &conclude_timeout),
543 543
544 544
545 GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('d', 545 GNUNET_GETOPT_option_relative_time ('d',
546 "delay", 546 "delay",
547 NULL, 547 NULL,
548 gettext_noop ("delay until consensus starts"), 548 gettext_noop ("delay until consensus starts"),
549 &consensus_delay), 549 &consensus_delay),
550 550
551 GNUNET_GETOPT_OPTION_FILENAME ('s', 551 GNUNET_GETOPT_option_filename ('s',
552 "statistics", 552 "statistics",
553 "FILENAME", 553 "FILENAME",
554 gettext_noop ("write statistics to file"), 554 gettext_noop ("write statistics to file"),
555 &statistics_filename), 555 &statistics_filename),
556 556
557 GNUNET_GETOPT_OPTION_SET_ONE ('S', 557 GNUNET_GETOPT_option_flag ('S',
558 "dist-static", 558 "dist-static",
559 gettext_noop ("distribute elements to a static subset of good peers"), 559 gettext_noop ("distribute elements to a static subset of good peers"),
560 &dist_static), 560 &dist_static),
561 561
562 GNUNET_GETOPT_OPTION_SET_ONE ('V', 562 GNUNET_GETOPT_option_flag ('V',
563 "verbose", 563 "verbose",
564 gettext_noop ("be more verbose (print received values)"), 564 gettext_noop ("be more verbose (print received values)"),
565 &verbose), 565 &verbose),