[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: update tutorial to match GE
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: update tutorial to match GETOPT-API changes |
Date: |
Sat, 25 Mar 2017 21:27:03 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 9cfc67137 update tutorial to match GETOPT-API changes
9cfc67137 is described below
commit 9cfc671375ef346c3ff40fbcdd7c2c090972072a
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Mar 25 21:27:01 2017 +0100
update tutorial to match GETOPT-API changes
---
doc/gnunet-c-tutorial.tex | 16 ++++++++--------
1 file 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,
int
main (int argc, char *const *argv)
{
- static const struct GNUNET_GETOPT_CommandLineOption options[] = {
+ struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_END
};
return (GNUNET_OK ==
@@ -669,13 +669,13 @@ static char *string_option;
static int a_flag;
// ...
- static const struct GNUNET_GETOPT_CommandLineOption options[] = {
- {'s', "name", "SOMESTRING",
- gettext_noop ("text describing the string_option NAME"), 1,
- &GNUNET_GETOPT_set_string, &string_option},
- {'f', "flag", NULL,
- gettext_noop ("text describing the flag option"), 0,
- &GNUNET_GETOPT_set_one, &a_flag},
+ struct GNUNET_GETOPT_CommandLineOption options[] = {
+ GNUNET_GETOPT_option_string ('s', "name", "SOMESTRING",
+ gettext_noop ("text describing the string_option NAME"),
+ &string_option},
+ GNUNET_GETOPT_option_flag ('f', "flag",
+ gettext_noop ("text describing the flag option"),
+ &a_flag),
GNUNET_GETOPT_OPTION_END
};
string_option = NULL;
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: update tutorial to match GETOPT-API changes,
gnunet <=