diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-25 21:25:44 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-25 21:25:44 +0100 |
commit | 5a7cef0202631204485cbcb1e36671e4321a936f (patch) | |
tree | ff3d10ac71f9284f18be7c33939f3438071e15c4 /src/vpn | |
parent | 2ad934742422ecb63fe3fafdc8c73d067a9e2fb7 (diff) | |
download | gnunet-5a7cef0202631204485cbcb1e36671e4321a936f.tar.gz gnunet-5a7cef0202631204485cbcb1e36671e4321a936f.zip |
rename GNUNET_GETOPT functions to achieve better consistency
Diffstat (limited to 'src/vpn')
-rw-r--r-- | src/vpn/gnunet-vpn.c | 18 |
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 | |||
287 | main (int argc, char *const *argv) | 287 | main (int argc, char *const *argv) |
288 | { | 288 | { |
289 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 289 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
290 | GNUNET_GETOPT_OPTION_SET_ONE ('4', | 290 | GNUNET_GETOPT_option_flag ('4', |
291 | "ipv4", | 291 | "ipv4", |
292 | gettext_noop ("request that result should be an IPv4 address"), | 292 | gettext_noop ("request that result should be an IPv4 address"), |
293 | &ipv4), | 293 | &ipv4), |
294 | 294 | ||
295 | GNUNET_GETOPT_OPTION_SET_ONE ('6', | 295 | GNUNET_GETOPT_option_flag ('6', |
296 | "ipv6", | 296 | "ipv6", |
297 | gettext_noop ("request that result should be an IPv6 address"), | 297 | gettext_noop ("request that result should be an IPv6 address"), |
298 | &ipv6), | 298 | &ipv6), |
299 | 299 | ||
300 | GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('d', | 300 | GNUNET_GETOPT_option_relative_time ('d', |
301 | "duration", | 301 | "duration", |
302 | "TIME", | 302 | "TIME", |
303 | gettext_noop ("how long should the mapping be valid for new tunnels?"), | 303 | gettext_noop ("how long should the mapping be valid for new tunnels?"), |
304 | &duration), | 304 | &duration), |
305 | 305 | ||
306 | GNUNET_GETOPT_OPTION_STRING ('i', | 306 | GNUNET_GETOPT_option_string ('i', |
307 | "ip", | 307 | "ip", |
308 | "IP", | 308 | "IP", |
309 | gettext_noop ("destination IP for the tunnel"), | 309 | gettext_noop ("destination IP for the tunnel"), |
310 | &target_ip), | 310 | &target_ip), |
311 | 311 | ||
312 | GNUNET_GETOPT_OPTION_STRING ('p', | 312 | GNUNET_GETOPT_option_string ('p', |
313 | "peer", | 313 | "peer", |
314 | "PEERID", | 314 | "PEERID", |
315 | gettext_noop ("peer offering the service we would like to access"), | 315 | gettext_noop ("peer offering the service we would like to access"), |
316 | &peer_id), | 316 | &peer_id), |
317 | 317 | ||
318 | GNUNET_GETOPT_OPTION_STRING ('s', | 318 | GNUNET_GETOPT_option_string ('s', |
319 | "service", | 319 | "service", |
320 | "NAME", | 320 | "NAME", |
321 | gettext_noop ("name of the service we would like to access"), | 321 | gettext_noop ("name of the service we would like to access"), |
322 | &service_name), | 322 | &service_name), |
323 | 323 | ||
324 | GNUNET_GETOPT_OPTION_SET_ONE ('t', | 324 | GNUNET_GETOPT_option_flag ('t', |
325 | "tcp", | 325 | "tcp", |
326 | gettext_noop ("service is offered via TCP"), | 326 | gettext_noop ("service is offered via TCP"), |
327 | &tcp), | 327 | &tcp), |
328 | 328 | ||
329 | GNUNET_GETOPT_OPTION_SET_ONE ('u', | 329 | GNUNET_GETOPT_option_flag ('u', |
330 | "udp", | 330 | "udp", |
331 | gettext_noop ("service is offered via UDP"), | 331 | gettext_noop ("service is offered via UDP"), |
332 | &udp), | 332 | &udp), |
333 | 333 | ||
334 | GNUNET_GETOPT_OPTION_VERBOSE (&verbosity), | 334 | GNUNET_GETOPT_option_verbose (&verbosity), |
335 | 335 | ||
336 | GNUNET_GETOPT_OPTION_END | 336 | GNUNET_GETOPT_OPTION_END |
337 | }; | 337 | }; |