aboutsummaryrefslogtreecommitdiff
path: root/src/testing
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/testing
parent2ad934742422ecb63fe3fafdc8c73d067a9e2fb7 (diff)
rename GNUNET_GETOPT functions to achieve better consistency
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/gnunet-testing.c10
-rw-r--r--src/testing/list-keys.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/testing/gnunet-testing.c b/src/testing/gnunet-testing.c
index 686b38192b..3dbe658834 100644
--- a/src/testing/gnunet-testing.c
+++ b/src/testing/gnunet-testing.c
@@ -349,30 +349,30 @@ int
main (int argc, char *const *argv)
{
struct GNUNET_GETOPT_CommandLineOption options[] = {
- GNUNET_GETOPT_OPTION_SET_ONE ('C',
+ GNUNET_GETOPT_option_flag ('C',
"cfg",
gettext_noop ("create unique configuration files"),
&create_cfg),
- GNUNET_GETOPT_OPTION_STRING ('k',
+ GNUNET_GETOPT_option_string ('k',
"key",
"FILENAME",
gettext_noop ("extract hostkey file from pre-computed hostkey list"),
&create_hostkey),
- GNUNET_GETOPT_OPTION_SET_UINT ('n',
+ GNUNET_GETOPT_option_uint ('n',
"number",
"NUMBER",
gettext_noop ("number of unique configuration files to create, or number of the hostkey to extract"),
&create_no),
- GNUNET_GETOPT_OPTION_STRING ('t',
+ GNUNET_GETOPT_option_string ('t',
"template",
"FILENAME",
gettext_noop ("configuration template"),
&create_cfg_template),
- GNUNET_GETOPT_OPTION_STRING ('r',
+ GNUNET_GETOPT_option_string ('r',
"run",
"SERVICE",
gettext_noop ("run the given service, wait on stdin for 'r' (restart) or 'q' (quit)"),
diff --git a/src/testing/list-keys.c b/src/testing/list-keys.c
index cfb49460ae..9210486d37 100644
--- a/src/testing/list-keys.c
+++ b/src/testing/list-keys.c
@@ -83,7 +83,7 @@ run (void *cls, char *const *args, const char *cfgfile,
int main (int argc, char *argv[])
{
struct GNUNET_GETOPT_CommandLineOption option[] = {
- GNUNET_GETOPT_OPTION_SET_UINT ('n',
+ GNUNET_GETOPT_option_uint ('n',
"num-keys",
"COUNT",
gettext_noop ("list COUNT number of keys"),