diff options
Diffstat (limited to 'src/testing/list-keys.c')
-rw-r--r-- | src/testing/list-keys.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/testing/list-keys.c b/src/testing/list-keys.c index 1fd46ebf2..cfb49460a 100644 --- a/src/testing/list-keys.c +++ b/src/testing/list-keys.c | |||
@@ -6,10 +6,6 @@ static unsigned int nkeys; | |||
6 | static unsigned int nskip; | 6 | static unsigned int nskip; |
7 | static int result; | 7 | static int result; |
8 | 8 | ||
9 | |||
10 | |||
11 | |||
12 | |||
13 | /** | 9 | /** |
14 | * Main run function. | 10 | * Main run function. |
15 | * | 11 | * |
@@ -87,12 +83,11 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
87 | int main (int argc, char *argv[]) | 83 | int main (int argc, char *argv[]) |
88 | { | 84 | { |
89 | struct GNUNET_GETOPT_CommandLineOption option[] = { | 85 | struct GNUNET_GETOPT_CommandLineOption option[] = { |
90 | {'n', "num-keys", "COUNT", | 86 | GNUNET_GETOPT_OPTION_SET_UINT ('n', |
91 | gettext_noop ("list COUNT number of keys"), | 87 | "num-keys", |
92 | GNUNET_YES, &GNUNET_GETOPT_set_uint, &nkeys}, | 88 | "COUNT", |
93 | {'s', "skip", "COUNT", | 89 | gettext_noop ("list COUNT number of keys"), |
94 | gettext_noop ("skip COUNT number of keys in the beginning"), | 90 | &nkeys), |
95 | GNUNET_YES, &GNUNET_GETOPT_set_uint, &nskip}, | ||
96 | GNUNET_GETOPT_OPTION_END | 91 | GNUNET_GETOPT_OPTION_END |
97 | }; | 92 | }; |
98 | int ret; | 93 | int ret; |