diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-25 21:27:01 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-25 21:27:01 +0100 |
commit | 9cfc671375ef346c3ff40fbcdd7c2c090972072a (patch) | |
tree | 9b67d4d0ebce3d71f853fd74f8114c647db73029 /doc | |
parent | 5a7cef0202631204485cbcb1e36671e4321a936f (diff) | |
download | gnunet-9cfc671375ef346c3ff40fbcdd7c2c090972072a.tar.gz gnunet-9cfc671375ef346c3ff40fbcdd7c2c090972072a.zip |
update tutorial to match GETOPT-API changes
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gnunet-c-tutorial.tex | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/gnunet-c-tutorial.tex b/doc/gnunet-c-tutorial.tex index 0f82a2e4b..3232dc81c 100644 --- a/doc/gnunet-c-tutorial.tex +++ b/doc/gnunet-c-tutorial.tex | |||
@@ -644,7 +644,7 @@ run (void *cls, | |||
644 | int | 644 | int |
645 | main (int argc, char *const *argv) | 645 | main (int argc, char *const *argv) |
646 | { | 646 | { |
647 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 647 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
648 | GNUNET_GETOPT_OPTION_END | 648 | GNUNET_GETOPT_OPTION_END |
649 | }; | 649 | }; |
650 | return (GNUNET_OK == | 650 | return (GNUNET_OK == |
@@ -669,13 +669,13 @@ static char *string_option; | |||
669 | static int a_flag; | 669 | static int a_flag; |
670 | 670 | ||
671 | // ... | 671 | // ... |
672 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 672 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
673 | {'s', "name", "SOMESTRING", | 673 | GNUNET_GETOPT_option_string ('s', "name", "SOMESTRING", |
674 | gettext_noop ("text describing the string_option NAME"), 1, | 674 | gettext_noop ("text describing the string_option NAME"), |
675 | &GNUNET_GETOPT_set_string, &string_option}, | 675 | &string_option}, |
676 | {'f', "flag", NULL, | 676 | GNUNET_GETOPT_option_flag ('f', "flag", |
677 | gettext_noop ("text describing the flag option"), 0, | 677 | gettext_noop ("text describing the flag option"), |
678 | &GNUNET_GETOPT_set_one, &a_flag}, | 678 | &a_flag), |
679 | GNUNET_GETOPT_OPTION_END | 679 | GNUNET_GETOPT_OPTION_END |
680 | }; | 680 | }; |
681 | string_option = NULL; | 681 | string_option = NULL; |