aboutsummaryrefslogtreecommitdiff
path: root/src/nat/gnunet-nat.c
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/nat/gnunet-nat.c
parent2ad934742422ecb63fe3fafdc8c73d067a9e2fb7 (diff)
downloadgnunet-5a7cef0202631204485cbcb1e36671e4321a936f.tar.gz
gnunet-5a7cef0202631204485cbcb1e36671e4321a936f.zip
rename GNUNET_GETOPT functions to achieve better consistency
Diffstat (limited to 'src/nat/gnunet-nat.c')
-rw-r--r--src/nat/gnunet-nat.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nat/gnunet-nat.c b/src/nat/gnunet-nat.c
index 50e0dff0f..b3cf2e946 100644
--- a/src/nat/gnunet-nat.c
+++ b/src/nat/gnunet-nat.c
@@ -419,40 +419,40 @@ main (int argc,
419{ 419{
420 struct GNUNET_GETOPT_CommandLineOption options[] = { 420 struct GNUNET_GETOPT_CommandLineOption options[] = {
421 421
422 GNUNET_GETOPT_OPTION_STRING ('i', 422 GNUNET_GETOPT_option_string ('i',
423 "in", 423 "in",
424 "ADDRESS", 424 "ADDRESS",
425 gettext_noop ("which IP and port are we locally using to bind/listen to"), 425 gettext_noop ("which IP and port are we locally using to bind/listen to"),
426 &local_addr), 426 &local_addr),
427 427
428 GNUNET_GETOPT_OPTION_STRING ('r', 428 GNUNET_GETOPT_option_string ('r',
429 "remote", 429 "remote",
430 "ADDRESS", 430 "ADDRESS",
431 gettext_noop ("which remote IP and port should be asked for connection reversal"), 431 gettext_noop ("which remote IP and port should be asked for connection reversal"),
432 &remote_addr), 432 &remote_addr),
433 433
434 GNUNET_GETOPT_OPTION_STRING ('S', 434 GNUNET_GETOPT_option_string ('S',
435 "section", 435 "section",
436 NULL, 436 NULL,
437 gettext_noop ("name of configuration section to find additional options, such as manual host punching data"), 437 gettext_noop ("name of configuration section to find additional options, such as manual host punching data"),
438 &section_name), 438 &section_name),
439 439
440 GNUNET_GETOPT_OPTION_SET_ONE ('s', 440 GNUNET_GETOPT_option_flag ('s',
441 "stun", 441 "stun",
442 gettext_noop ("enable STUN processing"), 442 gettext_noop ("enable STUN processing"),
443 &do_stun), 443 &do_stun),
444 444
445 GNUNET_GETOPT_OPTION_SET_ONE ('t', 445 GNUNET_GETOPT_option_flag ('t',
446 "tcp", 446 "tcp",
447 gettext_noop ("use TCP"), 447 gettext_noop ("use TCP"),
448 &use_tcp), 448 &use_tcp),
449 449
450 GNUNET_GETOPT_OPTION_SET_ONE ('u', 450 GNUNET_GETOPT_option_flag ('u',
451 "udp", 451 "udp",
452 gettext_noop ("use UDP"), 452 gettext_noop ("use UDP"),
453 &use_udp), 453 &use_udp),
454 454
455 GNUNET_GETOPT_OPTION_SET_ONE ('W', 455 GNUNET_GETOPT_option_flag ('W',
456 "watch", 456 "watch",
457 gettext_noop ("watch for connection reversal requests"), 457 gettext_noop ("watch for connection reversal requests"),
458 &listen_reversal), 458 &listen_reversal),