diff options
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/gnunet-transport-profiler.c | 14 | ||||
-rw-r--r-- | src/transport/gnunet-transport.c | 22 | ||||
-rw-r--r-- | src/transport/tcp_service_legacy.c | 12 |
3 files changed, 24 insertions, 24 deletions
diff --git a/src/transport/gnunet-transport-profiler.c b/src/transport/gnunet-transport-profiler.c index 9292c42d4..d580fce08 100644 --- a/src/transport/gnunet-transport-profiler.c +++ b/src/transport/gnunet-transport-profiler.c | |||
@@ -612,35 +612,35 @@ main (int argc, char * const *argv) | |||
612 | 612 | ||
613 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 613 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
614 | 614 | ||
615 | GNUNET_GETOPT_OPTION_SET_ONE ('s', | 615 | GNUNET_GETOPT_option_flag ('s', |
616 | "send", | 616 | "send", |
617 | gettext_noop ("send data to peer"), | 617 | gettext_noop ("send data to peer"), |
618 | &benchmark_send), | 618 | &benchmark_send), |
619 | GNUNET_GETOPT_OPTION_SET_ONE ('r', | 619 | GNUNET_GETOPT_option_flag ('r', |
620 | "receive", | 620 | "receive", |
621 | gettext_noop ("receive data from peer"), | 621 | gettext_noop ("receive data from peer"), |
622 | &benchmark_receive), | 622 | &benchmark_receive), |
623 | GNUNET_GETOPT_OPTION_SET_UINT ('i', | 623 | GNUNET_GETOPT_option_uint ('i', |
624 | "iterations", | 624 | "iterations", |
625 | NULL, | 625 | NULL, |
626 | gettext_noop ("iterations"), | 626 | gettext_noop ("iterations"), |
627 | &benchmark_iterations), | 627 | &benchmark_iterations), |
628 | GNUNET_GETOPT_OPTION_SET_UINT ('n', | 628 | GNUNET_GETOPT_option_uint ('n', |
629 | "number", | 629 | "number", |
630 | NULL, | 630 | NULL, |
631 | gettext_noop ("number of messages to send"), | 631 | gettext_noop ("number of messages to send"), |
632 | &benchmark_count), | 632 | &benchmark_count), |
633 | GNUNET_GETOPT_OPTION_SET_UINT ('m', | 633 | GNUNET_GETOPT_option_uint ('m', |
634 | "messagesize", | 634 | "messagesize", |
635 | NULL, | 635 | NULL, |
636 | gettext_noop ("message size to use"), | 636 | gettext_noop ("message size to use"), |
637 | &benchmark_size), | 637 | &benchmark_size), |
638 | GNUNET_GETOPT_OPTION_STRING ('p', | 638 | GNUNET_GETOPT_option_string ('p', |
639 | "peer", | 639 | "peer", |
640 | "PEER", | 640 | "PEER", |
641 | gettext_noop ("peer identity"), | 641 | gettext_noop ("peer identity"), |
642 | &cpid), | 642 | &cpid), |
643 | GNUNET_GETOPT_OPTION_VERBOSE (&verbosity), | 643 | GNUNET_GETOPT_option_verbose (&verbosity), |
644 | GNUNET_GETOPT_OPTION_END | 644 | GNUNET_GETOPT_OPTION_END |
645 | }; | 645 | }; |
646 | 646 | ||
diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c index 8624b09b4..96d0a6a3a 100644 --- a/src/transport/gnunet-transport.c +++ b/src/transport/gnunet-transport.c | |||
@@ -1428,49 +1428,49 @@ main (int argc, | |||
1428 | { | 1428 | { |
1429 | int res; | 1429 | int res; |
1430 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 1430 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
1431 | GNUNET_GETOPT_OPTION_SET_ONE ('a', | 1431 | GNUNET_GETOPT_option_flag ('a', |
1432 | "all", | 1432 | "all", |
1433 | gettext_noop ("print information for all peers (instead of only connected peers)"), | 1433 | gettext_noop ("print information for all peers (instead of only connected peers)"), |
1434 | &iterate_all), | 1434 | &iterate_all), |
1435 | GNUNET_GETOPT_OPTION_SET_ONE ('b', | 1435 | GNUNET_GETOPT_option_flag ('b', |
1436 | "benchmark", | 1436 | "benchmark", |
1437 | gettext_noop ("measure how fast we are receiving data from all peers (until CTRL-C)"), | 1437 | gettext_noop ("measure how fast we are receiving data from all peers (until CTRL-C)"), |
1438 | &benchmark_receive), | 1438 | &benchmark_receive), |
1439 | GNUNET_GETOPT_OPTION_SET_ONE ('D', | 1439 | GNUNET_GETOPT_option_flag ('D', |
1440 | "disconnect", | 1440 | "disconnect", |
1441 | gettext_noop ("disconnect from a peer"), | 1441 | gettext_noop ("disconnect from a peer"), |
1442 | &do_disconnect), | 1442 | &do_disconnect), |
1443 | GNUNET_GETOPT_OPTION_SET_ONE ('i', | 1443 | GNUNET_GETOPT_option_flag ('i', |
1444 | "information", | 1444 | "information", |
1445 | gettext_noop ("provide information about all current connections (once)"), | 1445 | gettext_noop ("provide information about all current connections (once)"), |
1446 | &iterate_connections), | 1446 | &iterate_connections), |
1447 | GNUNET_GETOPT_OPTION_SET_ONE ('m', | 1447 | GNUNET_GETOPT_option_flag ('m', |
1448 | "monitor", | 1448 | "monitor", |
1449 | gettext_noop ("provide information about all current connections (continuously)"), | 1449 | gettext_noop ("provide information about all current connections (continuously)"), |
1450 | &monitor_connections), | 1450 | &monitor_connections), |
1451 | GNUNET_GETOPT_OPTION_SET_ONE ('e', | 1451 | GNUNET_GETOPT_option_flag ('e', |
1452 | "events", | 1452 | "events", |
1453 | gettext_noop ("provide information about all connects and disconnect events (continuously)"), | 1453 | gettext_noop ("provide information about all connects and disconnect events (continuously)"), |
1454 | &monitor_connects), | 1454 | &monitor_connects), |
1455 | GNUNET_GETOPT_OPTION_SET_ONE ('n', | 1455 | GNUNET_GETOPT_option_flag ('n', |
1456 | "numeric", | 1456 | "numeric", |
1457 | gettext_noop ("do not resolve hostnames"), | 1457 | gettext_noop ("do not resolve hostnames"), |
1458 | &numeric), | 1458 | &numeric), |
1459 | GNUNET_GETOPT_OPTION_SET_BASE32_AUTO ('p', | 1459 | GNUNET_GETOPT_option_base32_auto ('p', |
1460 | "peer", | 1460 | "peer", |
1461 | "PEER", | 1461 | "PEER", |
1462 | gettext_noop ("peer identity"), | 1462 | gettext_noop ("peer identity"), |
1463 | &pid), | 1463 | &pid), |
1464 | GNUNET_GETOPT_OPTION_SET_ONE ('P', | 1464 | GNUNET_GETOPT_option_flag ('P', |
1465 | "plugins", | 1465 | "plugins", |
1466 | gettext_noop ("monitor plugin sessions"), | 1466 | gettext_noop ("monitor plugin sessions"), |
1467 | &monitor_plugins), | 1467 | &monitor_plugins), |
1468 | GNUNET_GETOPT_OPTION_SET_ONE ('s', | 1468 | GNUNET_GETOPT_option_flag ('s', |
1469 | "send", | 1469 | "send", |
1470 | gettext_noop | 1470 | gettext_noop |
1471 | ("send data for benchmarking to the other peer (until CTRL-C)"), | 1471 | ("send data for benchmarking to the other peer (until CTRL-C)"), |
1472 | &benchmark_send), | 1472 | &benchmark_send), |
1473 | GNUNET_GETOPT_OPTION_VERBOSE (&verbosity), | 1473 | GNUNET_GETOPT_option_verbose (&verbosity), |
1474 | GNUNET_GETOPT_OPTION_END | 1474 | GNUNET_GETOPT_OPTION_END |
1475 | }; | 1475 | }; |
1476 | 1476 | ||
diff --git a/src/transport/tcp_service_legacy.c b/src/transport/tcp_service_legacy.c index 7c2d3e55a..1f1f6c063 100644 --- a/src/transport/tcp_service_legacy.c +++ b/src/transport/tcp_service_legacy.c | |||
@@ -1392,15 +1392,15 @@ LEGACY_SERVICE_run (int argc, char *const *argv, | |||
1392 | const char *xdg; | 1392 | const char *xdg; |
1393 | 1393 | ||
1394 | struct GNUNET_GETOPT_CommandLineOption service_options[] = { | 1394 | struct GNUNET_GETOPT_CommandLineOption service_options[] = { |
1395 | GNUNET_GETOPT_OPTION_CFG_FILE (&opt_cfg_fn), | 1395 | GNUNET_GETOPT_option_cfgfile (&opt_cfg_fn), |
1396 | GNUNET_GETOPT_OPTION_SET_ONE ('d', | 1396 | GNUNET_GETOPT_option_flag ('d', |
1397 | "daemonize", | 1397 | "daemonize", |
1398 | gettext_noop ("do daemonize (detach from terminal)"), | 1398 | gettext_noop ("do daemonize (detach from terminal)"), |
1399 | &do_daemonize), | 1399 | &do_daemonize), |
1400 | GNUNET_GETOPT_OPTION_HELP (NULL), | 1400 | GNUNET_GETOPT_option_help (NULL), |
1401 | GNUNET_GETOPT_OPTION_LOGLEVEL (&loglev), | 1401 | GNUNET_GETOPT_option_loglevel (&loglev), |
1402 | GNUNET_GETOPT_OPTION_LOGFILE (&logfile), | 1402 | GNUNET_GETOPT_option_logfile (&logfile), |
1403 | GNUNET_GETOPT_OPTION_VERSION (PACKAGE_VERSION " " VCS_VERSION), | 1403 | GNUNET_GETOPT_option_version (PACKAGE_VERSION " " VCS_VERSION), |
1404 | GNUNET_GETOPT_OPTION_END | 1404 | GNUNET_GETOPT_OPTION_END |
1405 | }; | 1405 | }; |
1406 | err = 1; | 1406 | err = 1; |