summaryrefslogtreecommitdiff
path: root/src/vpn
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/vpn
parent2ad934742422ecb63fe3fafdc8c73d067a9e2fb7 (diff)
rename GNUNET_GETOPT functions to achieve better consistency
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-vpn.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/vpn/gnunet-vpn.c b/src/vpn/gnunet-vpn.c
index 0adbd5c96..34c545339 100644
--- a/src/vpn/gnunet-vpn.c
+++ b/src/vpn/gnunet-vpn.c
@@ -287,51 +287,51 @@ int
main (int argc, char *const *argv)
{
struct GNUNET_GETOPT_CommandLineOption options[] = {
- GNUNET_GETOPT_OPTION_SET_ONE ('4',
+ GNUNET_GETOPT_option_flag ('4',
"ipv4",
gettext_noop ("request that result should be an IPv4 address"),
&ipv4),
- GNUNET_GETOPT_OPTION_SET_ONE ('6',
+ GNUNET_GETOPT_option_flag ('6',
"ipv6",
gettext_noop ("request that result should be an IPv6 address"),
&ipv6),
- GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('d',
+ GNUNET_GETOPT_option_relative_time ('d',
"duration",
"TIME",
gettext_noop ("how long should the mapping be valid for new tunnels?"),
&duration),
- GNUNET_GETOPT_OPTION_STRING ('i',
+ GNUNET_GETOPT_option_string ('i',
"ip",
"IP",
gettext_noop ("destination IP for the tunnel"),
&target_ip),
- GNUNET_GETOPT_OPTION_STRING ('p',
+ GNUNET_GETOPT_option_string ('p',
"peer",
"PEERID",
gettext_noop ("peer offering the service we would like to access"),
&peer_id),
- GNUNET_GETOPT_OPTION_STRING ('s',
+ GNUNET_GETOPT_option_string ('s',
"service",
"NAME",
gettext_noop ("name of the service we would like to access"),
&service_name),
- GNUNET_GETOPT_OPTION_SET_ONE ('t',
+ GNUNET_GETOPT_option_flag ('t',
"tcp",
gettext_noop ("service is offered via TCP"),
&tcp),
- GNUNET_GETOPT_OPTION_SET_ONE ('u',
+ GNUNET_GETOPT_option_flag ('u',
"udp",
gettext_noop ("service is offered via UDP"),
&udp),
- GNUNET_GETOPT_OPTION_VERBOSE (&verbosity),
+ GNUNET_GETOPT_option_verbose (&verbosity),
GNUNET_GETOPT_OPTION_END
};